# HG changeset patch # User Sebastien Jodogne # Date 1591713259 -7200 # Node ID 1ac958787c01395b7dbb7b2c0c0b1d6497c81832 # Parent 3a77d4073adf7891c78ac33fb9d1398a64ce2be5 fix for msvc2008 diff -r 3a77d4073adf -r 1ac958787c01 OrthancServer/OrthancFindRequestHandler.cpp --- 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::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 {