Mercurial > hg > orthanc
comparison OrthancServer/OrthancFindRequestHandler.cpp @ 4036:c6e82885f570
merge
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 10 Jun 2020 10:28:15 +0200 |
parents | cc6ed76bba27 1ac958787c01 |
children | 642b0947af84 |
comparison
equal
deleted
inserted
replaced
4035:cc6ed76bba27 | 4036:c6e82885f570 |
---|---|
397 content.append(item); | 397 content.append(item); |
398 } | 398 } |
399 | 399 |
400 if (tag->IsPrivate()) | 400 if (tag->IsPrivate()) |
401 { | 401 { |
402 if (privateCreators.find(tag->GetGroup()) != privateCreators.end()) | 402 std::map<uint16_t, std::string>::const_iterator found = privateCreators.find(tag->GetGroup()); |
403 | |
404 if (found != privateCreators.end()) | |
403 { | 405 { |
404 dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, privateCreators.at(tag->GetGroup()).c_str()); | 406 dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, found->second.c_str()); |
405 } | 407 } |
406 else | 408 else |
407 { | 409 { |
408 dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, defaultPrivateCreator); | 410 dicom.Replace(*tag, content, false, DicomReplaceMode_InsertIfAbsent, defaultPrivateCreator); |
409 } | 411 } |