Mercurial > hg > orthanc
comparison Core/DicomParsing/FromDcmtkBridge.cpp @ 2522:ce2dfba9417c
fix build with dcmtk 3.6.0
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 10 Apr 2018 06:57:42 +0200 |
parents | 97a74f0eac7a |
children | 832217e4e872 |
comparison
equal
deleted
inserted
replaced
2521:6db878376018 | 2522:ce2dfba9417c |
---|---|
2180 break; | 2180 break; |
2181 | 2181 |
2182 case ITagVisitor::Action_Replace: | 2182 case ITagVisitor::Action_Replace: |
2183 { | 2183 { |
2184 std::string s = Toolbox::ConvertFromUtf8(newValue, encoding); | 2184 std::string s = Toolbox::ConvertFromUtf8(newValue, encoding); |
2185 if (element.putString(s.c_str(), s.size()) != EC_Normal) | 2185 if (element.putString(s.c_str()) != EC_Normal) |
2186 { | 2186 { |
2187 LOG(ERROR) << "Cannot replace value of tag: " << tag.Format(); | 2187 LOG(ERROR) << "Cannot replace value of tag: " << tag.Format(); |
2188 throw OrthancException(ErrorCode_InternalError); | 2188 throw OrthancException(ErrorCode_InternalError); |
2189 } | 2189 } |
2190 | 2190 |