]> Creatis software - clitk.git/commitdiff
gdcm 1.x compatibility
authorRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Tue, 25 Sep 2012 10:03:53 +0000 (12:03 +0200)
committerRomulo Pinho <romulo.pinho@lyon.unicancer.fr>
Tue, 25 Sep 2012 10:03:53 +0000 (12:03 +0200)
tools/clitkWriteDicomSeriesGenericFilter.txx

index 225aae586e6ccef8bb7eabb0d0dff72053c1af14..20e980ca603f86beb37fd4ea96ca08b4ab2e26f9 100644 (file)
@@ -273,6 +273,10 @@ WriteDicomSeriesGenericFilter<args_info_type>::UpdateWithDimAndPixelType()
     if (m_ArgsInfo.verbose_flag)
       DD(studyUID);
   }
+#if GDCM_MAJOR_VERSION < 2
+  else
+    gdcmIO->KeepOriginalUID();
+#endif
   
   std::string seriesUIDkey = "0020|000e";
   std::string frameOfReferenceUIDKey = "0020|0052";