Mercurial > hg > orthanc
diff OrthancServer/ToDcmtkBridge.cpp @ 1737:ec66a16aa398
removal of DicomStringValue and DicomNullValue
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Oct 2015 07:52:24 +0200 |
parents | 6e7e5ed91c2d |
children | b1291df2f780 |
line wrap: on
line diff
--- a/OrthancServer/ToDcmtkBridge.cpp Wed Oct 21 16:52:23 2015 +0200 +++ b/OrthancServer/ToDcmtkBridge.cpp Thu Oct 22 07:52:24 2015 +0200 @@ -52,8 +52,11 @@ for (DicomMap::Map::const_iterator it = map.map_.begin(); it != map.map_.end(); ++it) { - std::string s = it->second->AsString(); - DU_putStringDOElement(result.get(), Convert(it->first), s.c_str()); + if (!it->second->IsNull()) + { + std::string s = it->second->GetContent(); + DU_putStringDOElement(result.get(), Convert(it->first), s.c_str()); + } } return result.release();