ViewBox: mark matrix dirty _before_ emitting change signal to ensure

that slots can access the latest transform.
This commit is contained in:
Luke Campagnola 2017-07-27 22:21:02 -07:00
parent 5855aa8627
commit 55d21a436f

View File

@ -1482,9 +1482,9 @@ class ViewBox(GraphicsWidget):
self.sigYRangeChanged.emit(self, tuple(self.state['viewRange'][1]))
if any(changed):
self._matrixNeedsUpdate = True
self.sigRangeChanged.emit(self, self.state['viewRange'])
self.update()
self._matrixNeedsUpdate = True
# Inform linked views that the range has changed
for ax in [0, 1]: