From 4c58185ace9a101e864021abfc2b0955cdf53096 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Mon, 15 Oct 2012 10:44:25 +0200 Subject: [PATCH] gdcm 1.X compatibility --- tools/clitkWriteDicomSeriesGenericFilter.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/clitkWriteDicomSeriesGenericFilter.txx b/tools/clitkWriteDicomSeriesGenericFilter.txx index 83041c3..480e496 100644 --- a/tools/clitkWriteDicomSeriesGenericFilter.txx +++ b/tools/clitkWriteDicomSeriesGenericFilter.txx @@ -308,11 +308,11 @@ WriteDicomSeriesGenericFilter::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(); } -- 2.47.1