Commit 62cdaf0b authored by Luke Campagnola's avatar Luke Campagnola
Browse files

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

parent b09862d2
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment