bugfix: ScatterPlotItem generates any uncached spot items when calling points()
This commit is contained in:
parent
b09862d2c1
commit
62cdaf0b46
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user