From 9e7828c13d6cb46d19f6a652dcf763fa491a2996 Mon Sep 17 00:00:00 2001 From: ouv Date: Fri, 30 Aug 2013 15:37:12 +0000 Subject: [PATCH] Method objectsBoundingRect is called with true flag (taking into account only visible objects) inside onBoundingRectChanged() slot. --- src/GraphicsView/GraphicsView_ViewPort.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/GraphicsView/GraphicsView_ViewPort.cxx b/src/GraphicsView/GraphicsView_ViewPort.cxx index 4d0bb351c..8d65e4a6b 100644 --- a/src/GraphicsView/GraphicsView_ViewPort.cxx +++ b/src/GraphicsView/GraphicsView_ViewPort.cxx @@ -1630,7 +1630,7 @@ void GraphicsView_ViewPort::onBoundingRectChanged() { if( hasInteractionFlag( TraceBoundingRect ) ) { - QRectF aRect = objectsBoundingRect(); + QRectF aRect = objectsBoundingRect( true ); myScene->setSceneRect( aRect.adjusted( -mySceneGap, -mySceneGap, mySceneGap, mySceneGap ) ); } } -- 2.39.2