Skip to content
Snippets Groups Projects
Commit 22651c2b authored by Ludovic Hussonnois's avatar Ludovic Hussonnois
Browse files

BUG: Correct Quicklook application behavior for python binding.

parent a35865d2
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment