]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Fix for the "0052369: TC7.4.0: Visualization problem of default torus
authorrnv <rnv@opencascade.com>
Fri, 18 Apr 2014 07:48:36 +0000 (11:48 +0400)
committerrnv <rnv@opencascade.com>
Fri, 18 Apr 2014 07:48:36 +0000 (11:48 +0400)
preview".

src/OCCViewer/OCCViewer_ViewWindow.cxx

index ec18d289247a59fd923a3820620247ec4bc607a8..96e15b4885f29f741e8e8dc6206dddddfaff324d 100755 (executable)
@@ -371,6 +371,7 @@ bool OCCViewer_ViewWindow::eventFilter( QObject* watched, QEvent* e )
   int x1 = (int)( aEvent->x() + width()*delta/100 );
   int y1 = (int)( aEvent->y() + height()*delta/100 );
   myViewPort->zoom( x, y, x1, y1 );
+  myViewPort->getView()->ZFitAll();
       }
       return true;
 
@@ -1001,6 +1002,7 @@ void OCCViewer_ViewWindow::vpMouseReleaseEvent(QMouseEvent* theEvent)
 
   case PANVIEW:
   case ZOOMVIEW:
+    myViewPort->getView()->ZFitAll();
     resetState();
     break;