From f2045d98087280df71abed661ee9c63e268edc49 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 23 Apr 2004 10:02:48 +0000 Subject: [PATCH 1/1] minor modif to gdcmHeaderEntry::Print() --- src/gdcmHeaderEntry.cxx | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/gdcmHeaderEntry.cxx b/src/gdcmHeaderEntry.cxx index eda099ce..cdb3522e 100644 --- a/src/gdcmHeaderEntry.cxx +++ b/src/gdcmHeaderEntry.cxx @@ -123,11 +123,12 @@ 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 - { - //sprintf(st," x(%x)",(unsigned long)atof(v.c_str())); - sprintf(st," x(%x)", atoi(v.c_str()));//FIXME - } + else { + if ( GetLength() !=0 ) + sprintf(st," x(%x)", atoi(v.c_str()));//FIXME + else + sprintf(st," "); + } s << st; } s << std::endl; -- 2.46.1