Salome HOME
IPAL0054674: Wrong mesh icon after mesh modification
[modules/smesh.git] / src / SMESH_I / SMESH_Mesh_i.cxx
index 93cdb1ea95550f61f7c057167f60cd5b8fbc7a66..52f7e9e9cd067d516207c2aca19b839a7a43eb7a 100644 (file)
@@ -663,8 +663,8 @@ SMESH_Mesh_i::AddHypothesis(GEOM::GEOM_Object_ptr       aSubShape,
   {
     _gen_i->AddHypothesisToShape( mesh, aSubShape, anHyp );
 
-    int newNbMeshEnt = _impl->NbNodes() + _impl->GetMeshDS()->NbElements();
-    if ( newNbMeshEnt != prevNbMeshEnt )
+    //int newNbMeshEnt = _impl->NbNodes() + _impl->GetMeshDS()->NbElements();
+    if ( prevNbMeshEnt > 0 /*newNbMeshEnt != prevNbMeshEnt*/ )
       _gen_i->UpdateIcons( mesh );
   }
   if(MYDEBUG) MESSAGE( " AddHypothesis(): status = " << status );