]> SALOME platform Git repositories - modules/visu.git/commitdiff
Salome HOME
Sinchronize with HEAD accroding to
authorapo <apo@opencascade.com>
Mon, 17 Oct 2005 11:25:04 +0000 (11:25 +0000)
committerapo <apo@opencascade.com>
Mon, 17 Oct 2005 11:25:04 +0000 (11:25 +0000)
Bug IPAL10213
  MED files got during SAUVE->MED conversion isn't opened in Post-Pro

src/VISU_I/VISU_Result_i.cc

index 30ad155b90803bbac50d99f8c4cc6cca47545e92..2ecd1f0fcf551cd969d12070090f523e81acbc6d 100644 (file)
@@ -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);
+           }
          }
        }
       }