From 52b3a1eaf00a581dc231c2d8b452a2d8ba18e980 Mon Sep 17 00:00:00 2001 From: Romulo Pinho Date: Tue, 11 Oct 2011 10:09:44 +0200 Subject: [PATCH] Compilation error related to GDCM-2 --- common/clitkDicomRT_Contour.cxx | 2 ++ common/clitkDicomRT_Contour.h | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/common/clitkDicomRT_Contour.cxx b/common/clitkDicomRT_Contour.cxx index 9874563..ee55e44 100644 --- a/common/clitkDicomRT_Contour.cxx +++ b/common/clitkDicomRT_Contour.cxx @@ -53,6 +53,7 @@ void clitk::DicomRT_Contour::Print(std::ostream & os) const //-------------------------------------------------------------------- +#if GDCM_MAJOR_VERSION == 2 void clitk::DicomRT_Contour::UpdateDicomItem() { DD("DicomRT_Contour::UpdateDicomItem"); @@ -109,6 +110,7 @@ void clitk::DicomRT_Contour::UpdateDicomItem() DD(bb[0]); } +#endif //-------------------------------------------------------------------- diff --git a/common/clitkDicomRT_Contour.h b/common/clitkDicomRT_Contour.h index 91d75d6..78a5bfd 100644 --- a/common/clitkDicomRT_Contour.h +++ b/common/clitkDicomRT_Contour.h @@ -68,7 +68,11 @@ protected: ///Z location of the contour double mZ; +#if GDCM_MAJOR_VERSION == 2 gdcm::Item * mItem; +#else + gdcm::SQItem * mItem; +#endif private: DicomRT_Contour(); -- 2.47.1