From 1562ca43a44c957378b0e09d8593846688e91725 Mon Sep 17 00:00:00 2001
From: Cyrille Valladeau <cyrille.valladeau@c-s.fr>
Date: Wed, 26 Dec 2007 10:45:23 +0000
Subject: [PATCH] Correction : le New() sortait en erreur.

---
 Code/Visu/otbImageWidgetFormBase.h | 18 +++++++++++-------
 1 file changed, 11 insertions(+), 7 deletions(-)

diff --git a/Code/Visu/otbImageWidgetFormBase.h b/Code/Visu/otbImageWidgetFormBase.h
index 92a3ee7b9e..f6f993a43e 100644
--- a/Code/Visu/otbImageWidgetFormBase.h
+++ b/Code/Visu/otbImageWidgetFormBase.h
@@ -19,8 +19,10 @@
 #define _otbImageWidgetFormBase_h
 
 #include "itkDataObject.h"
+#include "itkObjectFactory.h"
 #include "itkFixedArray.h"
 #include "itkImageRegion.h"
+#include "itkMacro.h"
 #include <FL/gl.h>
 
 namespace otb
@@ -29,21 +31,23 @@ namespace otb
  * \brief 
  *
  */
-class ImageWidgetFormBase
+class ITK_EXPORT ImageWidgetFormBase
   : public itk::DataObject
 {
  public:
   /** Standard class typedefs */
-  typedef ImageWidgetFormBase Self;
-  typedef itk::DataObject Superclass;
-  typedef itk::SmartPointer<Self> Pointer;
+  typedef ImageWidgetFormBase           Self;
+  typedef itk::DataObject               Superclass;
+  typedef itk::SmartPointer<Self>       Pointer;
   typedef itk::SmartPointer<const Self> ConstPointer;
-  
+
+   /** Runtime information */
+  itkTypeMacro(ImageWidgetFormBase,DataObject);
+
   /** Method for creation through the object factory */
   itkNewMacro(Self);
   
-  /** Runtime information */
-  itkTypeMacro(ImageWidgetFormBase,DataObject);
+ 
 
   typedef itk::FixedArray<float,4> ColorType;
   typedef itk::ImageRegion<2> RegionType;
-- 
GitLab