[Libreoffice-commits] core.git: Branch 'libreoffice-7-0' - vcl/inc

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 11 16:24:37 UTC 2020


 vcl/inc/salvtables.hxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 908841ad600889f7b0f1c86aad240f14dda1f8bf
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 10 21:13:42 2020 +0200
Commit:     Adolfo Jayme Barrientos <fitojb at ubuntu.com>
CommitDate: Fri Sep 11 18:23:56 2020 +0200

    tdf#135565 prepare font preview virtual device
    
    make SalInstanceComboBox::create_render_virtual_device do more
    setup to have an appropiate default background.
    
    Change-Id: I43aeb6ffe85d21f11f3ebb1f981c0db67247e5db
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/102424
    Tested-by: Jenkins
    Reviewed-by: Adolfo Jayme Barrientos <fitojb at ubuntu.com>

diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx
index 5cde0ae6a4bd..d0ae4ad389ec 100644
--- a/vcl/inc/salvtables.hxx
+++ b/vcl/inc/salvtables.hxx
@@ -824,7 +824,9 @@ public:
 
     VclPtr<VirtualDevice> create_render_virtual_device() const override
     {
-        return VclPtr<VirtualDevice>::Create();
+        auto xRet = VclPtr<VirtualDevice>::Create();
+        xRet->SetBackground(Application::GetSettings().GetStyleSettings().GetFieldColor());
+        return xRet;
     }
 
     virtual void set_item_menu(const OString& rIdent, weld::Menu* pMenu) override


More information about the Libreoffice-commits mailing list