From 43f2536391be24d99b138572f3ebbbaebecec4dd Mon Sep 17 00:00:00 2001 From: CHEMIN Sebastien Date: Mon, 29 Apr 2024 08:46:28 +0200 Subject: [PATCH] Fix fitAll, fit Selected --- src/QtViewer/QtViewer_ViewPort.cxx | 1 - 1 file changed, 1 deletion(-) diff --git a/src/QtViewer/QtViewer_ViewPort.cxx b/src/QtViewer/QtViewer_ViewPort.cxx index af62030ed..691c5fe10 100644 --- a/src/QtViewer/QtViewer_ViewPort.cxx +++ b/src/QtViewer/QtViewer_ViewPort.cxx @@ -88,7 +88,6 @@ void QtViewer_ViewPort::fitAll() aRect = aRect.united(item->boundingRect()); } - scene()->setSceneRect(scene()->itemsBoundingRect()); fitInView( aRect.adjusted(-myFitAllGap, -myFitAllGap, myFitAllGap, myFitAllGap), Qt::KeepAspectRatio); } -- 2.39.2