drawinglayer/source/processor2d/vclprocessor2d.cxx |    4 ----
 svx/source/styles/CommonStylePreviewRenderer.cxx   |    1 +
 2 files changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 87de096032b0665abebed521f2f07f0ad893de0c
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Aug 24 12:39:21 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Aug 24 15:13:03 2022 +0200

    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 <caol...@redhat.com>

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);
commit c61c70e51cd6bc1721ec0d840aad28b5ed284ae7
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Wed Aug 24 12:35:29 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Wed Aug 24 15:12:49 2022 +0200

    cid#1510131 Uninitialized scalar field
    
    Change-Id: Iff08a3dbbfc7ac14606061c66c81519e780d846c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138761
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/svx/source/styles/CommonStylePreviewRenderer.cxx 
b/svx/source/styles/CommonStylePreviewRenderer.cxx
index 66fbb9e72603..3a78a3df22f8 100644
--- a/svx/source/styles/CommonStylePreviewRenderer.cxx
+++ b/svx/source/styles/CommonStylePreviewRenderer.cxx
@@ -53,6 +53,7 @@ CommonStylePreviewRenderer::CommonStylePreviewRenderer(
     , maFontColor(COL_AUTO)
     , maHighlightColor(COL_AUTO)
     , maBackgroundColor(COL_AUTO)
+    , mnHeight(0)
     , maStyleName(mpStyle->GetName())
 {
 }

Reply via email to