comparison OrthancServer/ToDcmtkBridge.cpp @ 1785:c131566b8252 dcmtk-3.6.1

integration mainline->dcmtk-3.6.1
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 18 Nov 2015 10:16:21 +0100
parents ec66a16aa398
children b1291df2f780
comparison
equal deleted inserted replaced
1639:1b82bb0446d2 1785:c131566b8252
50 std::auto_ptr<DcmDataset> result(new DcmDataset); 50 std::auto_ptr<DcmDataset> result(new DcmDataset);
51 51
52 for (DicomMap::Map::const_iterator 52 for (DicomMap::Map::const_iterator
53 it = map.map_.begin(); it != map.map_.end(); ++it) 53 it = map.map_.begin(); it != map.map_.end(); ++it)
54 { 54 {
55 std::string s = it->second->AsString(); 55 if (!it->second->IsNull())
56 DU_putStringDOElement(result.get(), Convert(it->first), s.c_str()); 56 {
57 std::string s = it->second->GetContent();
58 DU_putStringDOElement(result.get(), Convert(it->first), s.c_str());
59 }
57 } 60 }
58 61
59 return result.release(); 62 return result.release();
60 } 63 }
61 } 64 }