From: jfa Date: Wed, 14 Aug 2019 09:53:30 +0000 (+0300) Subject: 16982 EDF 19511 - Crash when dumping study. Improved fix. X-Git-Tag: V9_4_0a1~2 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9f557687e2818e359d9abef09143936b20961da9;p=modules%2Fgeom.git 16982 EDF 19511 - Crash when dumping study. Improved fix. --- diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index 2269e05c3..b19fd240c 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -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;