From 906c839d536c962ab32acb8617b3d725dcde5ebf Mon Sep 17 00:00:00 2001 From: apo Date: Mon, 17 Oct 2005 11:25:04 +0000 Subject: [PATCH] Sinchronize with HEAD accroding to Bug IPAL10213 MED files got during SAUVE->MED conversion isn't opened in Post-Pro --- src/VISU_I/VISU_Result_i.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); + } } } } -- 2.39.2