From 22651c2b3323af8341269c7afda443e41ce6e35e Mon Sep 17 00:00:00 2001
From: Ludovic Hussonnois <ludovic.hussonnois@c-s.fr>
Date: Wed, 25 Jan 2017 15:11:45 +0100
Subject: [PATCH] BUG: Correct Quicklook application behavior for python
 binding.

---
 Modules/Applications/AppImageUtils/app/otbQuicklook.cxx | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/Modules/Applications/AppImageUtils/app/otbQuicklook.cxx b/Modules/Applications/AppImageUtils/app/otbQuicklook.cxx
index 3c6a5e40a9..03d9ef4e2a 100644
--- a/Modules/Applications/AppImageUtils/app/otbQuicklook.cxx
+++ b/Modules/Applications/AppImageUtils/app/otbQuicklook.cxx
@@ -183,10 +183,10 @@ bool CropRegionOfInterest()
       {
         if (region.Crop(GetParameterImage("in")->GetLargestPossibleRegion()))
           {
-            SetParameterInt("rsx",region.GetSize(0), false);
-            SetParameterInt("rsy",region.GetSize(1), false);
-            SetParameterInt("rox",region.GetIndex(0), false);
-            SetParameterInt("roy",region.GetIndex(1), false);
+            SetParameterInt( "rsx", region.GetSize(0), HasUserValue("rsx") );
+            SetParameterInt( "rsy", region.GetSize(1), HasUserValue("rsy") );
+            SetParameterInt( "rox", region.GetIndex(0), HasUserValue("rox") );
+            SetParameterInt( "roy", region.GetIndex(1), HasUserValue("roy") );
             return true;
           }
       }
-- 
GitLab