From 325645516402775222fd0a6d8fe408e65ad4f3b6 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 28 May 2019 19:05:05 +0300 Subject: [PATCH] Fix for "16982 EDF 19511 - Crash when dumping study" issue. --- src/GEOM/GEOM_Engine.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/GEOM/GEOM_Engine.cxx b/src/GEOM/GEOM_Engine.cxx index bbd3f5589..305581186 100644 --- a/src/GEOM/GEOM_Engine.cxx +++ b/src/GEOM/GEOM_Engine.cxx @@ -1842,7 +1842,8 @@ TCollection_AsciiString GetPublishCommands TIntToListIntMap::const_iterator aRefIt = theMapRefs.find(theTag); if (aRefIt != theMapRefs.end()) { - // Recursively publish all references. + thePublished.insert(theTag); + // Recursively publish all references. std::list< int >::const_iterator aRefTagIt = aRefIt->second.begin(); for(; aRefTagIt != aRefIt->second.end(); ++aRefTagIt) { @@ -1856,8 +1857,6 @@ TCollection_AsciiString GetPublishCommands // Add the object command. aResult += anIt->second; } - - thePublished.insert(theTag); } return aResult; -- 2.39.2