Mercurial > hg > orthanc
diff OrthancServer/FromDcmtkBridge.cpp @ 2074:4a151d26c98a
fix extraction of the symbolic name of the private tags
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 16 Aug 2016 11:28:31 +0200 |
parents | 08ce34cfacad |
children | ec2ad6ac741e |
line wrap: on
line diff
--- a/OrthancServer/FromDcmtkBridge.cpp Fri Jul 15 11:58:11 2016 +0200 +++ b/OrthancServer/FromDcmtkBridge.cpp Tue Aug 16 11:28:31 2016 +0200 @@ -571,8 +571,7 @@ } // This code gives access to the name of the private tags - DcmTag tagbis(element.getTag()); - const std::string tagName(tagbis.getTagName()); + const std::string tagName = FromDcmtkBridge::GetName(tag); switch (format) { @@ -589,6 +588,7 @@ { node["Name"] = tagName; + DcmTag tagbis(tag.GetGroup(), tag.GetElement()); if (tagbis.getPrivateCreator() != NULL) { node["PrivateCreator"] = tagbis.getPrivateCreator();