Salome HOME
Mantis issue 0021532: EDF 2202 GEOM: Problem when restoring groups containing a singl...
authorjfa <jfa@opencascade.com>
Wed, 4 Apr 2012 12:15:01 +0000 (12:15 +0000)
committerjfa <jfa@opencascade.com>
Wed, 4 Apr 2012 12:15:01 +0000 (12:15 +0000)
src/GEOMImpl/GEOMImpl_IShapesOperations.cxx

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