]> Creatis software - clitk.git/commitdiff
Compilation error related to GDCM-2
authorRomulo Pinho <pinho@lyon.fnclcc.fr>
Tue, 11 Oct 2011 08:09:44 +0000 (10:09 +0200)
committerRomulo Pinho <pinho@lyon.fnclcc.fr>
Tue, 11 Oct 2011 08:09:44 +0000 (10:09 +0200)
common/clitkDicomRT_Contour.cxx
common/clitkDicomRT_Contour.h

index 987456392941e873f0e022e55553172acaa9ea5e..ee55e44bc704986ce736c82e19fa7a9c423b145b 100644 (file)
@@ -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
 //--------------------------------------------------------------------
 
 
index 91d75d6ffb411be64962f2091527a1e169428372..78a5bfde6519030fa4393eb0247a87319bb37047 100644 (file)
@@ -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();