Add guard for "last step" rect
parent
50713030f8
commit
16dfc75ad0
|
@ -328,8 +328,10 @@ class FastAppendCurve(pg.PlotCurveItem):
|
||||||
profiler = pg.debug.Profiler(disabled=not pg_profile_enabled())
|
profiler = pg.debug.Profiler(disabled=not pg_profile_enabled())
|
||||||
# p.setRenderHint(p.Antialiasing, True)
|
# p.setRenderHint(p.Antialiasing, True)
|
||||||
|
|
||||||
if self._step_mode:
|
if (
|
||||||
|
self._step_mode
|
||||||
|
and self._last_step_rect
|
||||||
|
):
|
||||||
brush = self.opts['brush']
|
brush = self.opts['brush']
|
||||||
# p.drawLines(*tuple(filter(bool, self._last_step_lines)))
|
# p.drawLines(*tuple(filter(bool, self._last_step_lines)))
|
||||||
# p.drawRect(self._last_step_rect)
|
# p.drawRect(self._last_step_rect)
|
||||||
|
|
Loading…
Reference in New Issue