From 6ec99bd65ed1fed5bf1fef20eb0e52243a82763a Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Fri, 28 Sep 2012 11:57:47 +0200 Subject: [PATCH] error in dicom key setting... --- tools/clitkWriteDicomSeriesGenericFilter.txx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/clitkWriteDicomSeriesGenericFilter.txx b/tools/clitkWriteDicomSeriesGenericFilter.txx index 70123e6..9974d17 100644 --- a/tools/clitkWriteDicomSeriesGenericFilter.txx +++ b/tools/clitkWriteDicomSeriesGenericFilter.txx @@ -267,12 +267,12 @@ WriteDicomSeriesGenericFilter::UpdateWithDimAndPixelType() if (m_ArgsInfo.verbose_flag) DD(entryId); - seriesUIDGiven = (entryId == seriesUIDkey || entryId == frameOfReferenceUIDKey); - seriesNumberGiven = (entryId == seriesNumberKey); - seriesDescriptionGiven = (entryId == seriesDescriptionKey); - studyUIDGiven = (entryId == studyUIDKey); - studyIDGiven = (entryId == studyIDKey); - studyDescriptionGiven = (entryId == studyDescriptionKey); + seriesUIDGiven |= (entryId == seriesUIDkey || entryId == frameOfReferenceUIDKey); + seriesNumberGiven |= (entryId == seriesNumberKey); + seriesDescriptionGiven |= (entryId == seriesDescriptionKey); + studyUIDGiven |= (entryId == studyUIDKey); + studyIDGiven |= (entryId == studyIDKey); + studyDescriptionGiven |= (entryId == studyDescriptionKey); } // force the creation of a new series if a new study was specified @@ -367,7 +367,7 @@ WriteDicomSeriesGenericFilter::UpdateWithDimAndPixelType() // series description/number if (seriesUIDGiven || m_ArgsInfo.newSeriesUID_flag) { if (!seriesDescriptionGiven) - itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesDescriptionKey, m_ArgsInfo.outputDir_arg ); + itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesDescriptionKey, "blabla");//m_ArgsInfo.outputDir_arg ); if (!seriesNumberGiven) itk::EncapsulateMetaData( *((*dictionary)[fni]), seriesNumberKey, m_ArgsInfo.outputDir_arg ); -- 2.47.1