Add `._last_bar_lines` guard to `.paint()`
parent
c256d3bdc0
commit
b985b48eb3
|
@ -274,6 +274,7 @@ class BarItems(pg.GraphicsObject):
|
|||
# lead to any perf gains other then when zoomed in to less bars
|
||||
# in view.
|
||||
p.setPen(self.last_bar_pen)
|
||||
if self._last_bar_lines:
|
||||
p.drawLines(*tuple(filter(bool, self._last_bar_lines)))
|
||||
profiler('draw last bar')
|
||||
|
||||
|
|
Loading…
Reference in New Issue