Merge pull request #563 from campagnola/viewbox-fix

Prevent viewbox auto-scaling to items that are not in the same scene.
This commit is contained in:
Luke Campagnola 2017-09-19 09:49:12 -07:00 committed by GitHub
commit 90661b32d9

View File

@ -1280,7 +1280,7 @@ class ViewBox(GraphicsWidget):
## First collect all boundary information
itemBounds = []
for item in items:
if not item.isVisible():
if not item.isVisible() or not item.scene() is self.scene():
continue
useX = True