Mercurial > hg > orthanc
comparison Core/DicomParsing/ParsedDicomFile.cpp @ 4011:914b15dedae3
fix for non private sequence tags in C-Find
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Mon, 08 Jun 2020 16:04:29 +0200 |
parents | 884b55ce01f6 |
children | 1e9f6d706237 |
comparison
equal
deleted
inserted
replaced
4007:884b55ce01f6 | 4011:914b15dedae3 |
---|---|
655 | 655 |
656 | 656 |
657 void ParsedDicomFile::ReplacePlainString(const DicomTag& tag, | 657 void ParsedDicomFile::ReplacePlainString(const DicomTag& tag, |
658 const std::string& utf8Value) | 658 const std::string& utf8Value) |
659 { | 659 { |
660 // if (tag.GetElement() == 4257 && tag.GetGroup() == 1031) | |
661 // { | |
662 // Replace(tag, utf8Value, false, DicomReplaceMode_InsertIfAbsent, | |
663 // "99CZM_CapeCod_OctGeneral"); | |
664 // } | |
665 // else | |
660 if (tag.IsPrivate()) | 666 if (tag.IsPrivate()) |
661 { | 667 { |
662 throw OrthancException(ErrorCode_InternalError, | 668 throw OrthancException(ErrorCode_InternalError, |
663 "Cannot apply this function to private tags: " + tag.Format()); | 669 "Cannot apply this function to private tags: " + tag.Format()); |
664 } | 670 } |