From: Romulo Pinho <romulo.pinho@lyon.unicancer.fr>
Date: Tue, 25 Sep 2012 10:03:53 +0000 (+0200)
Subject: gdcm 1.x compatibility
X-Git-Tag: v1.3.0~8
X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=a49ce6bf246efbaa348468bcb915493e0db17a9b;p=clitk.git

gdcm 1.x compatibility
---

diff --git a/tools/clitkWriteDicomSeriesGenericFilter.txx b/tools/clitkWriteDicomSeriesGenericFilter.txx
index 225aae5..20e980c 100644
--- a/tools/clitkWriteDicomSeriesGenericFilter.txx
+++ b/tools/clitkWriteDicomSeriesGenericFilter.txx
@@ -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";