From b18aa28600520e250a514cdd5f35a072a2b097fa Mon Sep 17 00:00:00 2001
From: Otmane Lahlou <otmane.lahlou@c-s.fr>
Date: Wed, 23 Mar 2011 18:40:35 +0100
Subject: [PATCH] ENH : the map projection can be returned NULL, must be null
 in case of WGS84 as projectionRefWkt

---
 Code/IO/otbMapProjectionWrapper.cxx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/IO/otbMapProjectionWrapper.cxx b/Code/IO/otbMapProjectionWrapper.cxx
index 876af94577..3e38002b89 100644
--- a/Code/IO/otbMapProjectionWrapper.cxx
+++ b/Code/IO/otbMapProjectionWrapper.cxx
@@ -50,7 +50,7 @@ MapProjectionWrapper::~MapProjectionWrapper()
 MapProjectionWrapper::InternalMapProjectionPointer MapProjectionWrapper::GetMapProjection()
 {
   itkDebugMacro("returning MapProjection address " << this->m_MapProjection);
-  if ((reinstanciateProjection) || (m_MapProjection == NULL))
+  if ((reinstanciateProjection) /*|| (m_MapProjection == NULL)*/)
     {
     this->InstanciateProjection();
     }
@@ -61,7 +61,7 @@ MapProjectionWrapper::InternalMapProjectionPointer MapProjectionWrapper::GetMapP
 MapProjectionWrapper::InternalMapProjectionConstPointer MapProjectionWrapper::GetMapProjection() const
 {
   itkDebugMacro("returning MapProjection address " << this->m_MapProjection);
-  if ((reinstanciateProjection) || (m_MapProjection == NULL))
+  if ((reinstanciateProjection) /*|| (m_MapProjection == NULL)*/)
     {
     itkExceptionMacro(<< "m_MapProjection not up-to-date, call InstanciateProjection() first");
     }
-- 
GitLab