bugfix: ScatterPlotItem generates any uncached spot items when calling points()

This commit is contained in:
Luke Campagnola 2012-04-23 10:11:09 -04:00
parent b09862d2c1
commit 62cdaf0b46

View File

@ -488,9 +488,13 @@ class ScatterPlotItem(GraphicsObject):
#self.sigPointClicked.emit(self, point) #self.sigPointClicked.emit(self, point)
def points(self): def points(self):
if not self.spotsValid:
self.generateSpots()
return self.spots[:] return self.spots[:]
def pointsAt(self, pos): def pointsAt(self, pos):
if not self.spotsValid:
self.generateSpots()
x = pos.x() x = pos.x()
y = pos.y() y = pos.y()
pw = self.pixelWidth() pw = self.pixelWidth()