]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
16982 EDF 19511 - Crash when dumping study. Improved fix.
authorjfa <jfa@opencascade.com>
Wed, 14 Aug 2019 09:53:30 +0000 (12:53 +0300)
committerjfa <jfa@opencascade.com>
Wed, 14 Aug 2019 09:53:30 +0000 (12:53 +0300)
src/GEOM/GEOM_Engine.cxx

index 2269e05c3df1c9c3aebb7e8de52c182ecaed5ab2..b19fd240cf90e273c4f65b51892a49b4c12750e5 100644 (file)
@@ -1834,6 +1834,8 @@ TCollection_AsciiString GetPublishCommands
 
   if (!thePublished.count(theTag)) {
     // This object is not published yet.
+    thePublished.insert(theTag);
+
     std::map< int, TCollection_AsciiString >::const_iterator anIt =
       theEntryToCmdMap.find(theTag);
 
@@ -1856,7 +1858,6 @@ TCollection_AsciiString GetPublishCommands
       // Add the object command.
       aResult += anIt->second;
     }
-    thePublished.insert(theTag);
   }
 
   return aResult;