From: jpr Date: Mon, 28 Jun 2004 11:23:20 +0000 (+0000) Subject: Jean-Pierre Roux X-Git-Tag: Version0.5.bp~80 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=ee97a6955588c213f4bd4fd6c81a25d33b52c252;p=gdcm.git Jean-Pierre Roux "UN" value representation Elements are now written correctly (their legth is stored on 4 bytes -just like OB, OW, and SQ-) --- diff --git a/src/gdcmDocEntry.cxx b/src/gdcmDocEntry.cxx index 0a55cb64..6357bdbd 100644 --- a/src/gdcmDocEntry.cxx +++ b/src/gdcmDocEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmDocEntry.cxx,v $ Language: C++ - Date: $Date: 2004/06/28 09:30:58 $ - Version: $Revision: 1.11 $ + Date: $Date: 2004/06/28 11:23:20 $ + Version: $Revision: 1.12 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -154,7 +154,7 @@ void gdcmDocEntry::Write(FILE *fp, FileType filetype) { } else { fwrite (vr.c_str(),(size_t)2 ,(size_t)1 ,fp); - if ( (vr == "OB") || (vr == "OW") || (vr == "SQ") ) + if ( (vr == "OB") || (vr == "OW") || (vr == "SQ") || (vr == "UN") ) { fwrite ( &z, (size_t)2 ,(size_t)1 ,fp); if (vr == "SQ") {