Add guard for "last step" rect

misc_backend_fixes
Tyler Goodlet 2022-01-13 16:05:05 -05:00
parent 50713030f8
commit 16dfc75ad0
1 changed files with 4 additions and 2 deletions

View File

@ -328,8 +328,10 @@ class FastAppendCurve(pg.PlotCurveItem):
profiler = pg.debug.Profiler(disabled=not pg_profile_enabled())
# p.setRenderHint(p.Antialiasing, True)
if self._step_mode:
if (
self._step_mode
and self._last_step_rect
):
brush = self.opts['brush']
# p.drawLines(*tuple(filter(bool, self._last_step_lines)))
# p.drawRect(self._last_step_rect)