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:
commit
90661b32d9
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user