X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDictEntry.cxx;h=0bc2afa901276bded0774da7b48255373a2a723b;hb=74ca8b85ac694824c885c36b5ed199f69de406d2;hp=7ad40bee7d9924c336d74836b6a5c0bfc8498598;hpb=06c1c583239fdf5196260e6ef83a78669c1bd17f;p=gdcm.git diff --git a/src/gdcmDictEntry.cxx b/src/gdcmDictEntry.cxx index 7ad40bee..0bc2afa9 100644 --- a/src/gdcmDictEntry.cxx +++ b/src/gdcmDictEntry.cxx @@ -39,7 +39,7 @@ gdcmDictEntry::gdcmDictEntry(guint16 InGroup, guint16 InElement, * \brief concatenates 2 guint16 (supposed to be a Dicom group number * and a Dicom element number) * @param group the Dicom group number used to build the tag - * @param group the Dicom element number used to build the tag + * @param element the Dicom element number used to build the tag * return the built tag */ @@ -60,10 +60,12 @@ TagKey gdcmDictEntry::TranslateToKey(guint16 group, guint16 element) { * is unset then overwrite it. * @param NewVr New V(alue) R(epresentation) to be set. */ -void gdcmDictEntry::SetVR(std::string NewVr) { +void gdcmDictEntry::SetVR(std::string NewVr) +{ if ( IsVRUnknown() ) vr = NewVr; - else { + else + { dbg.Error(true, "gdcmDictEntry::SetVR", "Overwriting vr might compromise a dictionary"); }