diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2023-08-17 13:11:30 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2023-08-17 15:06:27 +0200 |
commit | e304163c8a70daab587f0b328554444513887779 (patch) | |
tree | 69e6c88e037792c4c7e3a1b392e4772e670f268d | |
parent | 8c4fa83191e6df5d823386cca2adc30dbbc9e297 (diff) |
Simplify a bit
Change-Id: I4cc8f6dbaec0edd8a7a761f03868035350e01734
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/155760
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx b/drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx index f3909a1e1e94..298713517d2f 100644 --- a/drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx +++ b/drawinglayer/source/primitive2d/GlowSoftEgdeShadowTools.cxx @@ -46,8 +46,7 @@ AlphaMask ProcessAndBlurAlphaMask(const Bitmap& rMask, double fErodeDilateRadius fScale /= 2; fBlurRadius /= 2; fErodeDilateRadius /= 2; - aSize.setHeight(aSize.Height() / 2); - aSize.setWidth(aSize.Width() / 2); + aSize /= 2; } // BmpScaleFlag::NearestNeighbor is important for following color replacement |