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

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Sep 11 13:57:19 UTC 2020


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

New commits:
commit 4fa53470339d8813cc40e32d2ac60483a10cf2df
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Sep 10 21:13:42 2020 +0200
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Sep 11 15:56:42 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/+/102403
    Reviewed-by: Jan-Marek Glogowski <glogow at fbihome.de>
    Tested-by: Jenkins

diff --git a/vcl/inc/salvtables.hxx b/vcl/inc/salvtables.hxx
index ac856598768e..0bac5447b608 100644
--- a/vcl/inc/salvtables.hxx
+++ b/vcl/inc/salvtables.hxx
@@ -829,7 +829,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