From 781b63053e9aa3fd4fc40689e191a38be1e758d4 Mon Sep 17 00:00:00 2001 From: jpr Date: Fri, 23 Dec 2005 10:26:41 +0000 Subject: [PATCH] Add verbosity when something wrong occurs --- src/gdcmDataEntry.cxx | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/gdcmDataEntry.cxx b/src/gdcmDataEntry.cxx index 2475028b..3e4b3ca6 100644 --- a/src/gdcmDataEntry.cxx +++ b/src/gdcmDataEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDataEntry.cxx,v $ Language: C++ - Date: $Date: 2005/12/21 14:52:12 $ - Version: $Revision: 1.26 $ + Date: $Date: 2005/12/23 10:26:41 $ + Version: $Revision: 1.27 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -516,8 +516,8 @@ void DataEntry::WriteContent(std::ofstream *fp, FileType filetype) uint8_t *data = BinArea; //safe notation size_t l = GetLength(); - gdcmDebugMacro ("in DataEntry::WriteContent " << GetKey() - << " : " << Global::GetVR()->GetAtomicElementLength(this->GetVR()) + gdcmDebugMacro("in DataEntry::WriteContent " << GetKey() << " AtomicLength: " + << Global::GetVR()->GetAtomicElementLength(this->GetVR() ) // << " BinArea in :" << &BinArea ); if (BinArea) // the binArea was *actually* loaded { @@ -534,7 +534,6 @@ void DataEntry::WriteContent(std::ofstream *fp, FileType filetype) } case 2: { -gdcmDebugMacro ("AtomicLength = 2 found; lgt =" << l); uint16_t *data16 = (uint16_t *)data; for(i=0;iseekp(l, std::ios::cur); + } } // to avoid gdcm to propagate oddities // (length was already modified) -- 2.48.1