From: apo Date: Mon, 17 Oct 2005 11:25:04 +0000 (+0000) Subject: Sinchronize with HEAD accroding to X-Git-Tag: TG-D5-38-2003_D2005-20-12~148 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=906c839d536c962ab32acb8617b3d725dcde5ebf;p=modules%2Fvisu.git Sinchronize with HEAD accroding to Bug IPAL10213 MED files got during SAUVE->MED conversion isn't opened in Post-Pro --- diff --git a/src/VISU_I/VISU_Result_i.cc b/src/VISU_I/VISU_Result_i.cc index 30ad155b..2ecd1f0f 100644 --- a/src/VISU_I/VISU_Result_i.cc +++ b/src/VISU_I/VISU_Result_i.cc @@ -373,7 +373,11 @@ Build(SALOMEDS::SObject_ptr theSObject) aMeshName.c_str(), anEntity, aFamilyName.c_str()); - CreateReference(myStudyDocument,aGroupEntry,aComment2EntryMap[aComment.latin1()]); + TComment2EntryMap::const_iterator anIter = aComment2EntryMap.find(aComment.latin1()); + if(anIter != aComment2EntryMap.end()){ + const std::string& anEntry = anIter->second; + CreateReference(myStudyDocument,aGroupEntry,anEntry); + } } } }