Skip to content

Commit

Permalink
Drop cache reset from Curve.draw_last_datum()
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Jun 10, 2022
1 parent 3074773 commit da5dea9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions piker/ui/_curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -379,17 +379,17 @@ def draw_last_datum(

) -> None:
# default line draw last call
with self.reset_cache():
x = render_data['index']
y = render_data[array_key]

# draw the "current" step graphic segment so it
# lines up with the "middle" of the current
# (OHLC) sample.
self._last_line = QLineF(
x[-2], y[-2],
x[-1], y[-1],
)
# with self.reset_cache():
x = render_data['index']
y = render_data[array_key]

# draw the "current" step graphic segment so it
# lines up with the "middle" of the current
# (OHLC) sample.
self._last_line = QLineF(
x[-2], y[-2],
x[-1], y[-1],
)

return x, y

Expand Down

0 comments on commit da5dea9

Please sign in to comment.