X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmDocEntry.cxx;h=6a9a13ce201aa4ba3c7f86cf0a8a449bacb574e4;hb=e70a7e5ba954ce367c4b1bce03f6c7065cd45edf;hp=b5d013c9bee6cee0b4689ad06b20ca9e199a42da;hpb=003f9a9e167e2d3355773660e8fed130c653a251;p=gdcm.git diff --git a/src/gdcmDocEntry.cxx b/src/gdcmDocEntry.cxx index b5d013c9..6a9a13ce 100644 --- a/src/gdcmDocEntry.cxx +++ b/src/gdcmDocEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.cxx,v $ Language: C++ - Date: $Date: 2005/10/28 13:02:32 $ - Version: $Revision: 1.76 $ + Date: $Date: 2005/11/03 08:47:51 $ + Version: $Revision: 1.77 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -84,6 +84,10 @@ void DocEntry::WriteContent(std::ofstream *fp, FileType filetype) // // ----------- Writes the common part // + // To avoid gdcm to propagate oddities. + // --> Don't forget to *write* an even length value + if (lgth%2) + lgth ++; // ----------- Writes the common part : the Tag binary_write( *fp, group); //group number