From: mpa Date: Fri, 17 Jan 2014 09:46:36 +0000 (+0000) Subject: Fixed a regression: wrong display of shape by choosing different shape type when... X-Git-Tag: V7_4_0a1~51 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=96ecf49b169977fefd8942a1c6e2049a55a55048;p=modules%2Fgeom.git Fixed a regression: wrong display of shape by choosing different shape type when creating group --- diff --git a/src/GroupGUI/GroupGUI_GroupDlg.cxx b/src/GroupGUI/GroupGUI_GroupDlg.cxx index 31bef761a..9370dcd93 100644 --- a/src/GroupGUI/GroupGUI_GroupDlg.cxx +++ b/src/GroupGUI/GroupGUI_GroupDlg.cxx @@ -922,7 +922,7 @@ void GroupGUI_GroupDlg::activateSelection() myIsShapeType) // check if shape type is already choosen by user { GEOM_Displayer* aDisplayer = getDisplayer(); - + //display mode for main shape if ( myDmMode == -1 ) { SALOME_View* view = GEOM_Displayer::GetActiveView(); @@ -935,11 +935,6 @@ void GroupGUI_GroupDlg::activateSelection() if(!aSh.IsNull()) { myDmMode = aSh->isTopLevel() ? aSh->prevDisplayMode() : aSh->DisplayMode(); } - // Hide main shape, if explode on VERTEX - if(getShapeType() != TopAbs_VERTEX) { - aDisplayer->Erase(myMainObj, false, false); - myIsHiddenMain = true; - } } else myDmMode = SUIT_Session::session()->resourceMgr()->integerValue( "Geometry", "display_mode" ); @@ -948,10 +943,13 @@ void GroupGUI_GroupDlg::activateSelection() aDisplayer->SetDisplayMode(myDmMode); // Mantis issue 0021421: do not hide main shape, if explode on VERTEX - if (getShapeType() == TopAbs_VERTEX) { - if (myIsHiddenMain) - aDisplayer->Display(myMainObj); + if(getShapeType() != TopAbs_VERTEX) { + aDisplayer->Erase(myMainObj, false, false); + myIsHiddenMain = true; } + else + aDisplayer->Display(myMainObj); + aDisplayer->Erase(myGroup, false, false); QColor aColor = SUIT_Session::session()->resourceMgr()->colorValue( "Geometry", "editgroup_color" );