X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FgdcmHeader.cxx;h=ed7402e262d11799a96c2bd2395cd8d89fd283dc;hb=f0ea8af1179c35ddc83da32df10813899427214d;hp=c68aa171caeec585173dff2df1c672b6e9713411;hpb=0fd97a2f44764117b637de53e09b8a329ca133f8;p=gdcm.git diff --git a/src/gdcmHeader.cxx b/src/gdcmHeader.cxx index c68aa171..ed7402e2 100644 --- a/src/gdcmHeader.cxx +++ b/src/gdcmHeader.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: gdcmHeader.cxx,v $ Language: C++ - Date: $Date: 2004/11/04 15:59:37 $ - Version: $Revision: 1.197 $ + Date: $Date: 2004/11/05 20:23:14 $ + Version: $Revision: 1.198 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -115,8 +115,8 @@ void Header::Write(std::ofstream* fp,FileType filetype) if (i_lgPix != -2) { // no (GrPixel, NumPixel) element - std::string s_lgPix; - s_lgPix = Util::Format("%d", i_lgPix+12); + std::string s_lgPix = Util::Format("%d", i_lgPix+12); + s_lgPix = Util::DicomString( s_lgPix.c_str() ); ReplaceOrCreateByNumber(s_lgPix,GrPixel, 0x0000); } @@ -1178,6 +1178,7 @@ void Header::SetImageDataSize(size_t ImageDataSize) ImageDataSize += 8; car = Util::Format("%d", ImageDataSize); + car = Util::DicomString( car.c_str() ); SetEntryByNumber(car, GrPixel, NumPixel); }