From 0625dabc35ddf435a15c7db2b5404bcc893cbfb6 Mon Sep 17 00:00:00 2001 From: Danial Saruji Date: Wed, 12 Oct 2011 16:45:26 +0200 Subject: [PATCH] set static bool variable to false before notifying the other objects --- Core/Code/DataManagement/mitkDisplayGeometry.cpp | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Core/Code/DataManagement/mitkDisplayGeometry.cpp b/Core/Code/DataManagement/mitkDisplayGeometry.cpp index c7a302b..b2e0939 100644 --- a/Core/Code/DataManagement/mitkDisplayGeometry.cpp +++ b/Core/Code/DataManagement/mitkDisplayGeometry.cpp @@ -587,19 +587,18 @@ if ( zoomXtooSmall && zoomYtooSmall ) } - if (correctPanning) { SetOriginInMM( newOrigin ); } + inRecalculate = false; + if ( correctPanning || correctZooming ) { Modified(); } - inRecalculate = false; - // return true if any correction has been made return correctPanning || correctZooming; } -- 1.7.0.4