From: jfa Date: Thu, 2 Jul 2009 11:44:56 +0000 (+0000) Subject: Bug 0020409: EDF GUI: Rotation point. X-Git-Tag: V4_1_0_maintainance_FINAL~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1b934ff46196b1943cb7fcea428bbd25860ff142;p=modules%2Fgui.git Bug 0020409: EDF GUI: Rotation point. --- diff --git a/src/OCCViewer/OCCViewer_ViewWindow.cxx b/src/OCCViewer/OCCViewer_ViewWindow.cxx index 242b3eeb0..813068043 100755 --- a/src/OCCViewer/OCCViewer_ViewWindow.cxx +++ b/src/OCCViewer/OCCViewer_ViewWindow.cxx @@ -20,7 +20,7 @@ // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // OCCViewer_ViewWindow.cxx: implementation of the OCCViewer_ViewWindow class. -// + #include "OCCViewer_ViewWindow.h" #include "OCCViewer_ViewModel.h" #include "OCCViewer_ViewPort3d.h" @@ -1174,7 +1174,8 @@ void OCCViewer_ViewWindow::onSetRotationPoint( bool on ) if ( !mySetRotationPointDlg->isShown() ) { - if ( mySetRotationPointDlg->IsFirstShown() ) + //if ( mySetRotationPointDlg->IsFirstShown() ) + if (myCurrPointType == GRAVITY) { Standard_Real Xcenter, Ycenter, Zcenter; if ( computeGravityCenter( Xcenter, Ycenter, Zcenter ) )