From 9f557687e2818e359d9abef09143936b20961da9 Mon Sep 17 00:00:00 2001 From: jfa Date: Wed, 14 Aug 2019 12:53:30 +0300 Subject: [PATCH] 16982 EDF 19511 - Crash when dumping study. Improved fix. --- src/GEOM/GEOM_Engine.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2