[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - vcl/source

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Thu Apr 18 06:13:30 UTC 2019


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

New commits:
commit a7764314bc3f84f0dc812b7bc6e860876dee5040
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Wed Apr 17 12:24:17 2019 +0900
Commit:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
CommitDate: Thu Apr 18 14:59:51 2019 +0900

    tdf#124032 fix Edit background drawing
    
    IsPaintTransparent() is preventing to paint the background but
    not sure why this is needed. removing this condition doesn't
    seem to have any ill effects.
    
    Reviewed-on: https://gerrit.libreoffice.org/70855
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>
    (cherry picked from commit 1e917af27d18d934f3e9122aa98cd950b74ca246)
    
    Change-Id: I5ac54e208e4f1c9941beb4012aa44182d21dbed9
    (cherry picked from commit 23d475949580d1b104f9bd34abe0441cfc0461ae)

diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx
index 7560860de9de..370808a9147d 100644
--- a/vcl/source/control/edit.cxx
+++ b/vcl/source/control/edit.cxx
@@ -339,6 +339,7 @@ void Edit::ImplInit(vcl::Window* pParent, WinBits nStyle)
     SetCursor( new vcl::Cursor );
 
     SetPointer( Pointer( PointerStyle::Text ) );
+    ApplySettings(*this);
 
     uno::Reference< datatransfer::dnd::XDragGestureListener> xDGL( mxDnDListener, uno::UNO_QUERY );
     uno::Reference< datatransfer::dnd::XDragGestureRecognizer > xDGR = GetDragGestureRecognizer();
@@ -392,7 +393,7 @@ void Edit::ApplySettings(vcl::RenderContext& rRenderContext)
     Color aTextColor = rStyleSettings.GetFieldTextColor();
     ApplyControlForeground(rRenderContext, aTextColor);
 
-    if (ImplUseNativeBorder(rRenderContext, GetStyle()) || IsPaintTransparent())
+    if (ImplUseNativeBorder(rRenderContext, GetStyle()))
     {
         // Transparent background
         rRenderContext.SetBackground();


More information about the Libreoffice-commits mailing list