diff options
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/bitmap3.cxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/vcl/source/gdi/bitmap3.cxx b/vcl/source/gdi/bitmap3.cxx index b2704e15c17a..9d1ec353b92c 100644 --- a/vcl/source/gdi/bitmap3.cxx +++ b/vcl/source/gdi/bitmap3.cxx @@ -873,22 +873,20 @@ bool Bitmap::ImplConvertGhosted() bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, BmpScaleFlag nScaleFlag ) { - bool bRetval(false); - - const sal_uInt16 nStartCount(GetBitCount()); - if(basegfx::fTools::equalZero(rScaleX) || basegfx::fTools::equalZero(rScaleY)) { // no scale - bRetval = true; + return true; } if(basegfx::fTools::equal(rScaleX, 1.0) && basegfx::fTools::equal(rScaleY, 1.0)) { // no scale - bRetval = true; + return true; } + const sal_uInt16 nStartCount(GetBitCount()); + if( mpImpBmp ) { // implementation specific scaling @@ -924,6 +922,8 @@ bool Bitmap::Scale( const double& rScaleX, const double& rScaleY, BmpScaleFlag n if (nStartCount == 1 && nScaleFlag != BmpScaleFlag::NONE) nScaleFlag = BmpScaleFlag::Fast; + bool bRetval(false); + switch(nScaleFlag) { case BmpScaleFlag::NONE : |