mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
Fixed a regression: wrong display of shape by choosing different shape type when creating group
This commit is contained in:
parent
c19429532e
commit
96ecf49b16
@ -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" );
|
||||
|
Loading…
Reference in New Issue
Block a user