From: Romulo Pinho Date: Mon, 15 Oct 2012 08:44:25 +0000 (+0200) Subject: gdcm 1.X compatibility X-Git-Tag: v1.4.0~289^2~4 X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=commitdiff_plain;h=4c58185ace9a101e864021abfc2b0955cdf53096;p=clitk.git gdcm 1.X compatibility --- 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(); }