]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
in ConvertToStandalone(), copy color as well
authoreap <eap@opencascade.com>
Thu, 3 Nov 2011 14:04:43 +0000 (14:04 +0000)
committereap <eap@opencascade.com>
Thu, 3 Nov 2011 14:04:43 +0000 (14:04 +0000)
src/SMESH/SMESH_Mesh.cxx

index 09064df27f131b45d30d9a5d371e3a16b9b8a878..c750600c474df7aa7f0232f452bba104778a09e2 100644 (file)
@@ -1754,6 +1754,9 @@ SMESH_Group* SMESH_Mesh::ConvertToStandalone ( int theGroupID )
   while ( anItr->more() )
     aNewGrpDS->Add( (anItr->next())->GetID() );
 
+  // set color
+  aNewGrpDS->SetColor( anOldGrpDS->GetColor() );
+
   // remove old group
   delete anOldGrp;