diff options
author | Caolán McNamara <caolanm@redhat.com> | 2022-08-24 12:39:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2022-08-24 15:13:03 +0200 |
commit | 87de096032b0665abebed521f2f07f0ad893de0c (patch) | |
tree | fbb51174eac1fda46c459aac566096768a565606 /drawinglayer | |
parent | c61c70e51cd6bc1721ec0d840aad28b5ed284ae7 (diff) |
cid#1510129 Logically dead code
triggered by the recent flatten, but there since:
commit 36f21914b31a28f75ec2195c266424a18408f747
Date: Tue Oct 29 17:40:43 2013 +0000
Resolves: i123564 corrected some aspects when working with bitmaps...
with low color depth or small size
Change-Id: I5f088c3f7096cc6f2efcd370943128d6667b2d0f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138762
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'drawinglayer')
-rw-r--r-- | drawinglayer/source/processor2d/vclprocessor2d.cxx | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drawinglayer/source/processor2d/vclprocessor2d.cxx b/drawinglayer/source/processor2d/vclprocessor2d.cxx index 5c4b15a906c9..a9be11911e82 100644 --- a/drawinglayer/source/processor2d/vclprocessor2d.cxx +++ b/drawinglayer/source/processor2d/vclprocessor2d.cxx @@ -519,10 +519,6 @@ bool VclProcessor2D::RenderFillGraphicPrimitive2DImpl( const sal_Int32 nBWidth(std::max(sal_Int32(1), basegfx::fround(aGraphicRange.getWidth()))); const sal_Int32 nBHeight(std::max(sal_Int32(1), basegfx::fround(aGraphicRange.getHeight()))); - // only do something when bitmap fill has a size in discrete units - if (nBWidth <= 0 || nBHeight <= 0) - return true; - // nBWidth, nBHeight is the pixel size of the needed bitmap. To not need to scale it // in vcl many times, create a size-optimized version const Size aNeededBitmapSizePixel(nBWidth, nBHeight); |