X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeaderEntry.cxx;h=4ed417243198fd72831d9e68cbb0ade3f7e60271;hb=e25987c451d6f797a5e5288ac1a926cfd767fe57;hp=cca4311b3d76c89b827cd2a24aa7704da5fb9ade;hpb=5311d94213fb3d388924e1d5b8a9e11d1d40fcb3;p=gdcm.git diff --git a/src/gdcmHeaderEntry.cxx b/src/gdcmHeaderEntry.cxx index cca4311b..4ed41724 100644 --- a/src/gdcmHeaderEntry.cxx +++ b/src/gdcmHeaderEntry.cxx @@ -3,6 +3,7 @@ // #include "gdcmHeaderEntry.h" #include "gdcmTS.h" +#include "gdcmGlobal.h" #include "gdcmUtil.h" #ifdef GDCM_NO_ANSI_STRING_STREAM @@ -24,9 +25,9 @@ * @param in Pointer to existing dictionary entry */ gdcmHeaderEntry::gdcmHeaderEntry(gdcmDictEntry* in) { - ImplicitVR = false; - voidArea = NULL; // unsecure memory area to hold 'non string' values - entry = in; + ImplicitVR = false; + voidArea = NULL; // unsecure memory area to hold 'non string' values + entry = in; } //----------------------------------------------------------------------------- @@ -84,7 +85,7 @@ void gdcmHeaderEntry::Print(std::ostream & os) { if (printLevel>=1) { s.setf(std::ios::left); - s << std::setw(66-GetName().length()) << " "; + s << std::setw(66-GetName().length()) << " "; } s << "[" << GetName()<< "]"; @@ -122,7 +123,7 @@ void gdcmHeaderEntry::Print(std::ostream & os) { if ( (vr == "UL") || (vr == "US") || (vr == "SL") || (vr == "SS") ) { if (v == "4294967295") // to avoid troubles in convertion sprintf (st," x(ffffffff)"); - else + else sprintf(st," x(%x)",(unsigned long)atof(v.c_str())); s << st; }