From 156114b52e89493bbb1dbf26ea0a8cbc8b6581b0 Mon Sep 17 00:00:00 2001
From: Emmanuel Christophe <emmanuel.christophe@orfeo-toolbox.org>
Date: Tue, 5 May 2009 13:02:51 +0800
Subject: [PATCH] BUG: correct precision for RemoteSensingRegion display

---
 Code/Common/otbRemoteSensingRegion.h | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Code/Common/otbRemoteSensingRegion.h b/Code/Common/otbRemoteSensingRegion.h
index 5544ad1a1a..e8317542d5 100644
--- a/Code/Common/otbRemoteSensingRegion.h
+++ b/Code/Common/otbRemoteSensingRegion.h
@@ -18,6 +18,8 @@
 #define __otbRemoteSensingRegion_h
 
 #include <algorithm>
+#include <iomanip>
+
 #include "itkObjectFactory.h"
 
 #include "itkContinuousIndex.h"
@@ -302,7 +304,7 @@ public:
             }
         }
 
-      // if we cannot crop, return without changing anythin
+      // if we cannot crop, return without changing anything
       if (!cropPossible)
         {
           return cropPossible;
@@ -342,6 +344,7 @@ protected:
 
   void PrintSelf(std::ostream& os, itk::Indent indent) const
   {
+    os << std::setprecision(15);
     os << indent << "RemoteSensingRegion" << std::endl;
     os << indent << "Index:" << this->m_Index << std::endl;
     os << indent << "Size:" << this->m_Size << std::endl;
-- 
GitLab