X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmValEntry.cxx;h=052444766083ff178c23f99b34f5c238dce03fb1;hb=e1830579102f036e9e558320a21990a9438ec9ef;hp=6293e5dc73b0740748ddeac3574a5a71fe95a1eb;hpb=559c3639fc5b255b36a951f352db1addead9f78f;p=gdcm.git diff --git a/src/gdcmValEntry.cxx b/src/gdcmValEntry.cxx index 6293e5dc..05244476 100644 --- a/src/gdcmValEntry.cxx +++ b/src/gdcmValEntry.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmValEntry.cxx,v $ Language: C++ - Date: $Date: 2004/11/03 20:52:13 $ - Version: $Revision: 1.32 $ + Date: $Date: 2004/11/05 20:23:14 $ + Version: $Revision: 1.33 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -222,10 +222,10 @@ void ValEntry::Write(std::ofstream* fp, FileType filetype) tokens.clear(); return; } - - fp->write (GetValue().c_str(), (size_t)lgr ); // Elem value -// assert( lgr == GetValue().size() ); // FIXME ????? -// dbg.Assert(2, lgr == strlen(GetValue().c_str()), "Should be equal" ); + + //Due to seriously broken Theralys images I cannot put that here. + //assert( lgr == GetValue().size() ); + binary_write(*fp, GetValue()); } //-----------------------------------------------------------------------------