Mercurial > hg > orthanc
changeset 4028:1ac958787c01
fix for msvc2008
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Jun 2020 16:34:19 +0200 |
parents | 3a77d4073adf |
children | 156fece692e3 |
files | OrthancServer/OrthancFindRequestHandler.cpp |
diffstat | 1 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancServer/OrthancFindRequestHandler.cpp Tue Jun 09 16:33:08 2020 +0200 +++ b/OrthancServer/OrthancFindRequestHandler.cpp Tue Jun 09 16:34:19 2020 +0200 @@ -399,9 +399,11 @@ if (tag->IsPrivate()) { - if (privateCreators.find(tag->GetGroup()) != privateCreators.end()) + std::map<uint16_t, std::string>::const_iterator found = privateCreators.find(tag->GetGroup()); + + if (found != privateCreators.end()) { - dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, privateCreators.at(tag->GetGroup()).c_str()); + dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, found->second.c_str()); } else {