From bf0ceda886562ee11f318d62b0d91efdafabef6c Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 17 Oct 2005 09:08:23 +0000 Subject: [PATCH] Fix for bug 10277: Plot3D presentation becomes incorrect after arranging actors --- src/VISUGUI/VisuGUI_TimeAnimation.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/VISUGUI/VisuGUI_TimeAnimation.cxx b/src/VISUGUI/VisuGUI_TimeAnimation.cxx index 0598764e..1e7ac208 100644 --- a/src/VISUGUI/VisuGUI_TimeAnimation.cxx +++ b/src/VISUGUI/VisuGUI_TimeAnimation.cxx @@ -373,9 +373,9 @@ void ArrangeDlg::acceptViewWindow() aDist = fabs(aBounds[5] - aBounds[4]); } float aOffset[3]; - aOffset[0] = (aBounds[1] < aBounds[0]) ? -aBounds[1] : -aBounds[0]; - aOffset[1] = (aBounds[3] < aBounds[2]) ? -aBounds[3] : -aBounds[2]; - aOffset[2] = (aBounds[5] < aBounds[4]) ? -aBounds[5] : -aBounds[4]; + aOffset[0] = aOffset[1] = aOffset[2] = 0; + aOffset[aAxis] = + (aBounds[2*aAxis+1] < aBounds[2*aAxis]) ? -aBounds[2*aAxis+1] : -aBounds[2*aAxis]; if (i > 0) { float aCCDist = (aDist + aPrevDist) / 2.0; -- 2.39.2