]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix fitAll, fit Selected sc/graphicsview
authorCHEMIN Sebastien <sc236498@is245491.intra.cea.fr>
Mon, 29 Apr 2024 06:46:28 +0000 (08:46 +0200)
committerCHEMIN Sebastien <sc236498@is245491.intra.cea.fr>
Mon, 29 Apr 2024 06:46:28 +0000 (08:46 +0200)
src/QtViewer/QtViewer_ViewPort.cxx

index af62030ed3ec54bad54f735c9e77911151351762..691c5fe1012ec55ff9095d71b20e8dbb66cce496 100644 (file)
@@ -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);
 }