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
|
## First collect all boundary information
|
||||||
itemBounds = []
|
itemBounds = []
|
||||||
for item in items:
|
for item in items:
|
||||||
if not item.isVisible():
|
if not item.isVisible() or not item.scene() is self.scene():
|
||||||
continue
|
continue
|
||||||
|
|
||||||
useX = True
|
useX = True
|
||||||
|
Loading…
Reference in New Issue
Block a user