From d39a556b656f9aa2b4742ec3fc96ff448a5e7540 Mon Sep 17 00:00:00 2001 From: ouv Date: Wed, 13 Oct 2010 16:22:00 +0000 Subject: [PATCH] Additional fix for issue 0020938: EDF 1450 GEOM: center of zoom --- src/OCCViewer/OCCViewer_ViewPort3d.cxx | 2 ++ 1 file changed, 2 insertions(+) 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 ); } } -- 2.39.2