]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Fix for bug IPAL11368.
authormzn <mzn@opencascade.com>
Fri, 14 Apr 2006 12:30:41 +0000 (12:30 +0000)
committermzn <mzn@opencascade.com>
Fri, 14 Apr 2006 12:30:41 +0000 (12:30 +0000)
src/VVTK/VVTK_MainWindow.cxx

index e292f1b6f70022460ee5397cd35faeb9493b869f..1b3e755d51d08fc73d4a3cfc2becd806077d2050 100644 (file)
@@ -386,6 +386,9 @@ void
 VVTK_MainWindow1
 ::OnSelectionModeSwitch(bool theIsSelectionOn)
 {
+  if ( theIsSelectionOn && !isVisible() )
+    return;
+  
   Selection_Mode aSelectionMode = SelectionMode();
   if(theIsSelectionOn && aSelectionMode != GaussPointSelection)
     SetSelectionMode(GaussPointSelection);