Mercurial > hg > orthanc
changeset 4039:fa35465175b8
fix for msvc2008
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 10 Jun 2020 14:16:16 +0200 |
parents | e072b4e33600 |
children | 052dc48c15be |
files | Core/DicomParsing/ParsedDicomFile.cpp |
diffstat | 1 files changed, 5 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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<uint16_t, std::string>::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 {