From a49ce6bf246efbaa348468bcb915493e0db17a9b Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Tue, 25 Sep 2012 12:03:53 +0200 Subject: [PATCH] gdcm 1.x compatibility --- tools/clitkWriteDicomSeriesGenericFilter.txx | 4 ++++ 1 file changed, 4 insertions(+) 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::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"; -- 2.47.1