From: jfa Date: Mon, 17 Oct 2005 09:08:23 +0000 (+0000) Subject: Fix for bug 10277: Plot3D presentation becomes incorrect after arranging actors X-Git-Tag: ForTest_3_1_0a2~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=bf0ceda886562ee11f318d62b0d91efdafabef6c;p=modules%2Fvisu.git Fix for bug 10277: Plot3D presentation becomes incorrect after arranging actors --- 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;