]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Bug 0020409: EDF GUI: Rotation point.
authorjfa <jfa@opencascade.com>
Thu, 2 Jul 2009 11:44:56 +0000 (11:44 +0000)
committerjfa <jfa@opencascade.com>
Thu, 2 Jul 2009 11:44:56 +0000 (11:44 +0000)
src/OCCViewer/OCCViewer_ViewWindow.cxx

index 242b3eeb04d5ccd2619c7d0b0e4cbbf347ddeff2..8130680439d1b353826536050642d289f0e41815 100755 (executable)
@@ -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 ) )