From 041ea1ad431e405144770b4cbb746ea2e374467e Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Thu, 8 Apr 2010 18:58:23 +0800
Subject: [PATCH] ITK: fix RGBPixel Numeric traits

---
 Utilities/ITK/Code/Common/itkNumericTraitsRGBAPixel.h | 2 +-
 Utilities/ITK/Code/Common/itkNumericTraitsRGBPixel.h  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Utilities/ITK/Code/Common/itkNumericTraitsRGBAPixel.h b/Utilities/ITK/Code/Common/itkNumericTraitsRGBAPixel.h
index 6e0ecdba94..5ea94427ac 100644
--- a/Utilities/ITK/Code/Common/itkNumericTraitsRGBAPixel.h
+++ b/Utilities/ITK/Code/Common/itkNumericTraitsRGBAPixel.h
@@ -47,7 +47,7 @@ public: \
   typedef RGBAPixel<ElementAbsType>          AbsType; \
   typedef RGBAPixel<ElementAccumulateType>   AccumulateType; \
   typedef RGBAPixel<ElementFloatType>        FloatType; \
-  typedef Self                               PrintType; \
+  typedef RGBAPixel<ElementPrintType>        PrintType; \
   typedef RGBAPixel<ElementRealType>         RealType; \
  \
   typedef ElementRealType ScalarRealType; \
diff --git a/Utilities/ITK/Code/Common/itkNumericTraitsRGBPixel.h b/Utilities/ITK/Code/Common/itkNumericTraitsRGBPixel.h
index 48c587cfd2..59deaf6afe 100644
--- a/Utilities/ITK/Code/Common/itkNumericTraitsRGBPixel.h
+++ b/Utilities/ITK/Code/Common/itkNumericTraitsRGBPixel.h
@@ -47,7 +47,7 @@ public: \
   typedef RGBPixel<ElementAbsType>          AbsType; \
   typedef RGBPixel<ElementAccumulateType>   AccumulateType; \
   typedef RGBPixel<ElementFloatType>        FloatType; \
-  typedef Self                              PrintType; \
+  typedef RGBPixel<ElementPrintType>        PrintType; \
   typedef RGBPixel<ElementRealType>         RealType; \
  \
   typedef ElementRealType ScalarRealType; \
-- 
GitLab