summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2019-03-14 14:30:28 +0100
committerLuboš Luňák <l.lunak@collabora.com>2019-03-21 13:12:39 +0100
commit5715c738fd9257360aa8bd6e3d39322dae193b26 (patch)
tree21c7b7818db827731f817df8a6ebb71999e1375c
parente53f380cbae0741ee4b39483a6422898bb580d28 (diff)
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: Luboš Luňák <l.lunak@collabora.com>
-rw-r--r--vcl/opengl/scale.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/opengl/scale.cxx b/vcl/opengl/scale.cxx
index 6459933cb81b..ae7146b6d6bf 100644
--- a/vcl/opengl/scale.cxx
+++ b/vcl/opengl/scale.cxx
@@ -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 )