# HG changeset patch # User Sebastien Jodogne # Date 1591791376 -7200 # Node ID fa35465175b84023a7415c05c6708c807ffed0e0 # Parent e072b4e336002df51358c6a8c115bc4d780261b7 fix for msvc2008 diff -r e072b4e33600 -r fa35465175b8 Core/DicomParsing/ParsedDicomFile.cpp --- a/Core/DicomParsing/ParsedDicomFile.cpp Wed Jun 10 12:21:22 2020 +0200 +++ b/Core/DicomParsing/ParsedDicomFile.cpp Wed Jun 10 14:16:16 2020 +0200 @@ -1051,9 +1051,12 @@ // Same as "ReplacePlainString()", but with support for private creator const std::string& utf8Value = it->second->GetContent(); - if (it->first.IsPrivate() && privateCreators.find(it->first.GetGroup()) != privateCreators.end()) + std::map::const_iterator found = privateCreators.find(it->first.GetGroup()); + + if (it->first.IsPrivate() && + found != privateCreators.end()) { - Replace(it->first, utf8Value, false, DicomReplaceMode_InsertIfAbsent, privateCreators.at(it->first.GetGroup())); + Replace(it->first, utf8Value, false, DicomReplaceMode_InsertIfAbsent, found->second); } else {