16982 EDF 19511 - Crash when dumping study. Improved fix.

This commit is contained in:
jfa 2019-08-14 12:53:30 +03:00
parent ca407fcec6
commit 9f557687e2

View 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;