Commit 7a8813eb authored by Stéphane Albert's avatar Stéphane Albert

BUGFIX: MANTIS-1203: Fixed flipping effect when otb::GlView::ZoomToFull() if...

BUGFIX: MANTIS-1203: Fixed flipping effect when otb::GlView::ZoomToFull() if native spacing of selected image is opposite of the view spacing.
parent 78978aff
......@@ -698,11 +698,13 @@ GlView
// as 1:1 reference).
//
// MANTIS-1202
//
// MANTIS-1203: restore sign of axis when applying isotrop spacing.
// {
if( vcl_abs( spacing[ 0 ] ) < vcl_abs( spacing[ 1 ] ) )
spacing[ 1 ] = spacing[ 0 ];
spacing[ 1 ] = ( spacing[ 1 ]<0.0 ? -1 : +1 ) * vcl_abs( spacing[ 0 ] );
else
spacing[ 0 ] = spacing[ 1 ];
spacing[ 0 ] = ( spacing[ 0 ]<0.0 ? -1 : +1 ) * vcl_abs( spacing[ 1 ] );
// }
// MANTIS-1202
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment