]> Creatis software - clitk.git/commitdiff
gdcm 1.X compatibility
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Mon, 15 Oct 2012 08:44:25 +0000 (10:44 +0200)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Mon, 15 Oct 2012 08:44:25 +0000 (10:44 +0200)
tools/clitkWriteDicomSeriesGenericFilter.txx

index 83041c377631470953dd1afb568e3dc35492bf7a..480e4969847db27b312e63f59f5b6214ed184fbb 100644 (file)
@@ -308,11 +308,11 @@ WriteDicomSeriesGenericFilter<args_info_type>::UpdateWithDimAndPixelType()
   bool useInputFileUID = true;
   if (m_ArgsInfo.newSeriesUID_flag || m_ArgsInfo.newStudyUID_flag || seriesUIDGiven || studyUIDGiven) {
     useInputFileUID = false;
+  }
+  else {
 #if GDCM_MAJOR_VERSION < 2
     gdcmIO->SetKeepOriginalUID(true);
 #endif
-  }
-  else {
     namesGenerator->SetOutputDirectory( m_ArgsInfo.outputDir_arg  );
     filenames_out = namesGenerator->GetOutputFileNames();
   }