Mantis issue 0021532: EDF 2202 GEOM: Problem when restoring groups containing a single shape.

This commit is contained in:
jfa 2012-04-04 12:15:01 +00:00
parent 10d829dc33
commit a650ac1733

View File

@ -3933,7 +3933,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::GetInPlace (Handle(GEOM_Object)
return NULL; return NULL;
} }
if (aModifiedArray->Length() > 1) { if (aModifiedArray->Length() > 1 || theShapeWhat->GetType() == GEOM_GROUP) {
//Set a GROUP type //Set a GROUP type
aResult->SetType(GEOM_GROUP); aResult->SetType(GEOM_GROUP);
@ -4161,7 +4161,7 @@ Handle(GEOM_Object) GEOMImpl_IShapesOperations::GetInPlaceOld (Handle(GEOM_Objec
return NULL; return NULL;
} }
if (aModifiedArray->Length() > 1) { if (aModifiedArray->Length() > 1 || theShapeWhat->GetType() == GEOM_GROUP) {
//Set a GROUP type //Set a GROUP type
aResult->SetType(GEOM_GROUP); aResult->SetType(GEOM_GROUP);