X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=Example%2FRawToDicom.cxx;h=da5f00b2f964465a4dcb95c2051a412f59033cef;hb=d37154e4495e1e1c18c44f6cae6ef2ff8a2891cf;hp=a2ffe02cd2ab266b47a28516997ce454f27edd0a;hpb=88a0e8d8c47070a680d71eb6a7ac349993e81a5f;p=gdcm.git diff --git a/Example/RawToDicom.cxx b/Example/RawToDicom.cxx index a2ffe02c..da5f00b2 100755 --- a/Example/RawToDicom.cxx +++ b/Example/RawToDicom.cxx @@ -3,8 +3,8 @@ Program: gdcm Module: $RCSfile: RawToDicom.cxx,v $ Language: C++ - Date: $Date: 2007/09/18 11:01:55 $ - Version: $Revision: 1.13 $ + Date: $Date: 2007/09/20 11:15:54 $ + Version: $Revision: 1.14 $ Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de l'Image). All rights reserved. See Doc/License.txt or @@ -120,8 +120,9 @@ int main(int argc, char *argv[]) if (userDefinedStudy) studyUID = am->ArgMgrGetString("studyUID"); - // not described *on purpose* in the Usage ! - bool userDefinedSerie = am->ArgMgrDefined("serieUID"); + // not described *on purpose* in the Usage ! + bool userDefinedSerie = ( 0 != am->ArgMgrDefined("serieUID") ); + const char *serieUID; if(userDefinedSerie) serieUID = am->ArgMgrGetString("serieUID");