Salome HOME
Reverting commit 32564551 as it caused regression with data publication
authorvsr <vsr@opencascade.com>
Tue, 30 Jul 2019 08:39:41 +0000 (11:39 +0300)
committervsr <vsr@opencascade.com>
Tue, 30 Jul 2019 08:39:41 +0000 (11:39 +0300)
src/GEOM/GEOM_Engine.cxx

index 3055811862e5d16c807bfbf52f0be66751a45a25..2269e05c3df1c9c3aebb7e8de52c182ecaed5ab2 100644 (file)
@@ -1842,7 +1842,6 @@ TCollection_AsciiString GetPublishCommands
       TIntToListIntMap::const_iterator aRefIt = theMapRefs.find(theTag);
 
       if (aRefIt != theMapRefs.end()) {
-               thePublished.insert(theTag);
         // Recursively publish all references.         
         std::list< int >::const_iterator aRefTagIt = aRefIt->second.begin();
 
@@ -1857,6 +1856,7 @@ TCollection_AsciiString GetPublishCommands
       // Add the object command.
       aResult += anIt->second;
     }
+    thePublished.insert(theTag);
   }
 
   return aResult;