Salome HOME
#16648. + Update icons
[modules/smesh.git] / src / SMESH / SMESH_Mesh.cxx
index 31efebf587e13dd4e861969349f617f6a688b7ef..1ea9d48f8340a1ac6ffdfaddc7904ce3c5ee691a 100644 (file)
@@ -1191,9 +1191,6 @@ void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h
   if ( !GetMeshDS()->IsUsedHypothesis( hyp ))
     return;
 
-  if (_callUp && hyp)
-    _callUp->HypothesisModified( hyp->GetID() );
-
   SMESH_Algo *algo;
   const SMESH_HypoFilter* compatibleHypoKind;
   std::list <const SMESHDS_Hypothesis * > usedHyps;
@@ -1260,6 +1257,9 @@ void SMESH_Mesh::NotifySubMeshesHypothesisModification(const SMESH_Hypothesis* h
   }
   HasModificationsToDiscard(); // to reset _isModified flag if mesh becomes empty
   GetMeshDS()->Modified();
+
+  if (_callUp && hyp)
+    _callUp->HypothesisModified( hyp->GetID() );
 }
 
 //=============================================================================