Kaydet (Commit) 5715c738 authored tarafından Luboš Luňák's avatar Luboš Luňák

add missing else in an if-else chain

No functional change, but avoid the warning.

Change-Id: Ia552c6199806a9e029800e9d65c0852baa370bd8
Reviewed-on: https://gerrit.libreoffice.org/69270
Tested-by: Jenkins
Reviewed-by: 's avatarLuboš Luňák <l.lunak@collabora.com>
üst e53f380c
......@@ -349,7 +349,7 @@ void OpenGLSalBitmap::ImplScale( const double& rScaleX, const double& rScaleY, B
{
ImplScaleFilter( xContext, rScaleX, rScaleY, GL_NEAREST );
}
if( nScaleFlag == BmpScaleFlag::BiLinear )
else if( nScaleFlag == BmpScaleFlag::BiLinear )
{
ImplScaleFilter( xContext, rScaleX, rScaleY, GL_LINEAR );
}
......@@ -360,7 +360,7 @@ void OpenGLSalBitmap::ImplScale( const double& rScaleX, const double& rScaleY, B
ImplScaleConvolution( xContext, rScaleX, rScaleY, aKernel );
}
else if( nScaleFlag == BmpScaleFlag::BestQuality && rScaleX <= 1 && rScaleY <= 1 )
{ // Use are scaling for best quality, but only if downscaling.
{ // Use area scaling for best quality, but only if downscaling.
ImplScaleArea( xContext, rScaleX, rScaleY );
}
else if( nScaleFlag == BmpScaleFlag::Lanczos || nScaleFlag == BmpScaleFlag::BestQuality )
......
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