comparison OrthancServer/FromDcmtkBridge.cpp @ 1147:ae9a83a6fa47

simplification
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Sep 2014 14:15:30 +0200
parents ac6bd50a8c83
children 6e7e5ed91c2d
comparison
equal deleted inserted replaced
1146:200fcac0deb4 1147:ae9a83a6fa47
324 * Attribute tag. 324 * Attribute tag.
325 **/ 325 **/
326 326
327 case EVR_AT: 327 case EVR_AT:
328 { 328 {
329 OFString s; 329 DcmTagKey tag;
330 if (dynamic_cast<DcmAttributeTag&>(element).getOFString(s, 0).good()) 330 if (dynamic_cast<DcmAttributeTag&>(element).getTagVal(tag, 0).good())
331 return new DicomString(s.c_str()); 331 {
332 DicomTag t(tag.getGroup(), tag.getElement());
333 return new DicomString(t.Format());
334 }
332 else 335 else
336 {
333 return new DicomNullValue; 337 return new DicomNullValue;
338 }
334 } 339 }
335 340
336 341
337 /** 342 /**
338 * Sequence types, should never occur at this point because of 343 * Sequence types, should never occur at this point because of