From 62cdaf0b4660d9011a24e9ebc5a65d21cc1bf182 Mon Sep 17 00:00:00 2001 From: Luke Campagnola <> Date: Mon, 23 Apr 2012 10:11:09 -0400 Subject: [PATCH] bugfix: ScatterPlotItem generates any uncached spot items when calling points() --- graphicsItems/ScatterPlotItem.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/graphicsItems/ScatterPlotItem.py b/graphicsItems/ScatterPlotItem.py index 10d0ded7..0f1b0daf 100644 --- a/graphicsItems/ScatterPlotItem.py +++ b/graphicsItems/ScatterPlotItem.py @@ -488,9 +488,13 @@ class ScatterPlotItem(GraphicsObject): #self.sigPointClicked.emit(self, point) def points(self): + if not self.spotsValid: + self.generateSpots() return self.spots[:] def pointsAt(self, pos): + if not self.spotsValid: + self.generateSpots() x = pos.x() y = pos.y() pw = self.pixelWidth()