]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
debug of Group Definition p.3
authorisn <isn@opencascade.com>
Mon, 3 Dec 2018 15:41:16 +0000 (18:41 +0300)
committerisn <isn@opencascade.com>
Mon, 3 Dec 2018 15:41:16 +0000 (18:41 +0300)
src/HYDROData/HYDROData_SplitToZonesTool.cxx

index 29d93734b0a3d17d046ebc57e392f482348e164f..25302c1503e5938c565f751e878f85aa0012340e 100644 (file)
@@ -772,10 +772,10 @@ void HYDROData_SplitToZonesTool::AddInternalEdges(HYDROData_DataMapOfShapeListOf
   {
     const TopoDS_Shape& K = DM.FindKey(i);
     const TopTools_ListOfShape& V = DM.FindFromIndex(i);  
-    TopTools_ListOfShape modifSh = OInSH2MSH.FindFromKey(K);
-    if (!modifSh.IsEmpty())
+    const TopTools_ListOfShape* modifSh = OInSH2MSH.Seek(K);
+    if (modifSh && !modifSh->IsEmpty()) 
     {
-      TopTools_ListIteratorOfListOfShape it(modifSh);
+      TopTools_ListIteratorOfListOfShape it(*modifSh);
       for (;it.More(); it.Next())
       {
         const TopoDS_Shape& NF = it.Value();