]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Additional fix for issue 0020938: EDF 1450 GEOM: center of zoom
authorouv <ouv@opencascade.com>
Wed, 13 Oct 2010 16:22:00 +0000 (16:22 +0000)
committerouv <ouv@opencascade.com>
Wed, 13 Oct 2010 16:22:00 +0000 (16:22 +0000)
src/OCCViewer/OCCViewer_ViewPort3d.cxx

index ef78fa84c70129e152f0f5843827f6b581fa0a72..0703c8f80d1d378c0c58a72ac100793bbc010e21 100755 (executable)
@@ -337,9 +337,11 @@ void OCCViewer_ViewPort3d::zoom( int x0, int y0, int x, int y )
     // as OCCT respects a sign of only dx,
     // but we want both signes to be taken into account
     //activeView()->Zoom( x0, y0, x, y );
+#if OCC_VERSION_LARGE > 0x06030010 // available only with OCC-6.3-sp11 and higher version
     if ( isAdvancedZoomingEnabled() )
       activeView()->ZoomAtPoint( x0, y0, x, y );
     else
+#endif
       activeView()->Zoom( x0 + y0, 0, x + y, 0 );
   }
 }