]> Creatis software - gdcm.git/blobdiff - src/gdcmHeaderEntry.cxx
in ordrer to display the *stored* length when xxx.Print()
[gdcm.git] / src / gdcmHeaderEntry.cxx
index 6ce3a9f8f1d6a7f18339923378db82fadb8bc6fd..d11b342f2c3fb3853fdd4cb1a45cdd97bb8beee2 100644 (file)
@@ -51,7 +51,7 @@ void gdcmHeaderEntry::Print(std::ostream & os) {
       s << "lg : ";
       lgth = GetReadLength();
       if (lgth == 0xffffffff) {
-         sprintf(st,"x(%ff)");
+         sprintf(st,"x(ffff)");  // I said : "x(ffff)" !
          s.setf(std::ios::left);
          s << std::setw(10-strlen(st)) << " ";  
          s << st << " ";
@@ -67,7 +67,7 @@ void gdcmHeaderEntry::Print(std::ostream & os) {
       }
       s << " Off.: ";
       sprintf(st,"x(%x)",o); 
-      s << std::setw(10-strlen(st)) << " ";       
+      s << std::setw(10-strlen(st)) << " ";
       s << st << " ";
       s << std::setw(8) << o; 
    }