From: eap Date: Fri, 22 Mar 2013 15:33:42 +0000 (+0000) Subject: fix CheckGeomGroupModif() for the case of a mesh on a geom group X-Git-Tag: pluginMGCleaner~39 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=634ea8043b74c9832e10dbe715b5a439e490f487;p=modules%2Fsmesh.git fix CheckGeomGroupModif() for the case of a mesh on a geom group --- diff --git a/src/SMESH_I/SMESH_Mesh_i.cxx b/src/SMESH_I/SMESH_Mesh_i.cxx index cf8441623..653f68d3a 100644 --- a/src/SMESH_I/SMESH_Mesh_i.cxx +++ b/src/SMESH_I/SMESH_Mesh_i.cxx @@ -1984,12 +1984,12 @@ void SMESH_Mesh_i::CheckGeomGroupModif() list& hyps = indS_hyps->second; int oldID = geom._index; int newID = meshDS->ShapeToIndex( geom._shape ); - if ( !newID ) - continue; if ( oldID == 1 ) { // main shape newID = 1; geom._shape = newShape; } + if ( !newID ) + continue; for ( hypIt = hyps.begin(); hypIt != hyps.end(); ++hypIt ) _impl->AddHypothesis( geom._shape, (*hypIt)->GetID()); // care of submeshes