[Libreoffice-commits] core.git: vcl/source

Jan-Marek Glogowski (via logerrit) logerrit at kemper.freedesktop.org
Thu Oct 22 10:20:41 UTC 2020


 vcl/source/window/brdwin.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 2859febef0dd59e6714032887f1f4ababf0b1044
Author:     Jan-Marek Glogowski <glogow at fbihome.de>
AuthorDate: Wed Oct 21 14:28:38 2020 +0200
Commit:     Jan-Marek Glogowski <glogow at fbihome.de>
CommitDate: Thu Oct 22 12:20:01 2020 +0200

    tdf#136866 VCL don't drop the control background
    
    Since tdf#136094, we handle the background color for native
    controls. So we shouldn't set the control window to transparent,
    if a control background is set.
    
    I'm not sure, if this just papers over a more general bug, but
    even if we report a border in native painting, the original
    window shouldn't be painted anyway.
    
    Change-Id: I86267028214586d46ca9ba0b2288d4729abef16f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104621
    Reviewed-by: Michael Weghorn <m.weghorn at posteo.de>
    Tested-by: Jenkins

diff --git a/vcl/source/window/brdwin.cxx b/vcl/source/window/brdwin.cxx
index 66c63af65370..78258d758776 100644
--- a/vcl/source/window/brdwin.cxx
+++ b/vcl/source/window/brdwin.cxx
@@ -500,7 +500,8 @@ void ImplSmallBorderWindowView::Init( OutputDevice* pDev, tools::Long nWidth, to
 
                         mpBorderWindow->SetPaintTransparent( true );
                         mpBorderWindow->SetBackground();
-                        pCtrl->SetPaintTransparent( true );
+                        if (!pCtrl->IsControlBackground())
+                            pCtrl->SetPaintTransparent(true);
 
                         vcl::Window* pCompoundParent = nullptr;
                         if( pWin->GetParent() && pWin->GetParent()->IsCompoundControl() )


More information about the Libreoffice-commits mailing list