]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
Correct switch of interaction style TG_VISU_2008_2008-06-26
authorvsv <vsv@opencascade.com>
Fri, 20 Jun 2008 06:52:53 +0000 (06:52 +0000)
committervsv <vsv@opencascade.com>
Fri, 20 Jun 2008 06:52:53 +0000 (06:52 +0000)
src/SVTK/SVTK_MainWindow.cxx

index b9ca147a71335694f59820bfed93d504cfd75283..8e84221ef4b1d483072fc2e241f552cd55268d8b 100644 (file)
@@ -795,7 +795,9 @@ void SVTK_MainWindow::onSwitchInteractionStyle(bool theOn)
     }
   }
   else {
-    PopInteractorStyle();
+    // pop only key free  style
+    if ( GetInteractorStyle() == myKeyFreeInteractorStyle.GetPointer() )
+      PopInteractorStyle();
   }
 
   // update action state if method is called outside