]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0020991: [CEA] regression with creating/editing group
authorvsr <vsr@opencascade.com>
Thu, 23 Sep 2010 11:35:44 +0000 (11:35 +0000)
committervsr <vsr@opencascade.com>
Thu, 23 Sep 2010 11:35:44 +0000 (11:35 +0000)
src/GroupGUI/GroupGUI_GroupDlg.cxx

index 07f5eae4eda4fc90bba788f94a96b6a9d26f01a9..dcee8dbad4c509d5c5db10eb2b406139b0b64699 100644 (file)
@@ -787,6 +787,7 @@ void GroupGUI_GroupDlg::activateSelection()
       myIsShapeType) // check if shape type is already choosen by user
   {
     GEOM_Displayer* aDisplayer = getDisplayer();
+    int prevDisplayMode = aDisplayer->SetDisplayMode(0);
 
     SUIT_ViewWindow* aViewWindow = 0;
     SUIT_Study* activeStudy = SUIT_Session::session()->activeApplication()->activeStudy();
@@ -829,6 +830,7 @@ void GroupGUI_GroupDlg::activateSelection()
       }
     }
     aDisplayer->UpdateViewer();
+    aDisplayer->SetDisplayMode(prevDisplayMode);
   }
 
   globalSelection(GEOM_ALLSHAPES);