From: jpr Date: Thu, 20 Oct 2005 07:23:50 +0000 (+0000) Subject: Fix 'delimitors' Print() X-Git-Tag: OpenJPEG.Version1.2~304 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=7cb37a242568f7905f1e16d5cc8004e869f0d9f5;p=gdcm.git Fix 'delimitors' Print() --- diff --git a/src/gdcmDataEntry.cxx b/src/gdcmDataEntry.cxx index ebe2409d..6c7a11b8 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/10/18 18:42:51 $ - Version: $Revision: 1.3 $ + Date: $Date: 2005/10/20 07:23:50 $ + Version: $Revision: 1.4 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -501,6 +501,12 @@ void DataEntry::Print(std::ostream &os, std::string const & ) os << "D "; DocEntry::Print(os); + uint16_t g = GetGroup(); + if (g == 0xfffe) // delimiters have NO value + { + return; // just to avoid identing all the remaining code + } + std::ostringstream s; TSAtr v;