From: ouv Date: Wed, 13 Oct 2010 16:22:00 +0000 (+0000) Subject: Additional fix for issue 0020938: EDF 1450 GEOM: center of zoom X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d39a556b656f9aa2b4742ec3fc96ff448a5e7540;p=modules%2Fgui.git Additional fix for issue 0020938: EDF 1450 GEOM: center of zoom --- diff --git a/src/OCCViewer/OCCViewer_ViewPort3d.cxx b/src/OCCViewer/OCCViewer_ViewPort3d.cxx index ef78fa84c..0703c8f80 100755 --- a/src/OCCViewer/OCCViewer_ViewPort3d.cxx +++ b/src/OCCViewer/OCCViewer_ViewPort3d.cxx @@ -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 ); } }