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

New commits:
commit b7d54ddc548f9df7058c8a1dc4df00691b74c35d
Author:     Noel Grandin <noelgran...@gmail.com>
AuthorDate: Sat Aug 23 12:28:04 2025 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Sun Aug 24 21:22:45 2025 +0200

    tdf#167812 font dropdown broken (2)
    
    Fix this some more.
    Using transparency, as in my first commit for this issue,
    means that we have to fill in the background for the list box
    entry before drawing the entry.
    
    Change-Id: Iee018473524eaa58bc3584fac3c136bfe01408d2
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190057
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    (cherry picked from commit 4bdcccaedb5f1be85784dffd70fc017d1ed2fc5b)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190095
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/svtools/source/control/ctrlbox.cxx 
b/svtools/source/control/ctrlbox.cxx
index e275343a46ee..c0d84e429d70 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -833,7 +833,8 @@ OutputDevice& FontNameBox::CachePreview(size_t nIndex, 
Point* pTopLeft,
 
             VirtualDevice& rDevice = *rVirtualDevs.back();
             rDevice.SetOutputSizePixel(Size(gUserItemSz.Width(), 
gUserItemSz.Height() * gPreviewsPerDevice));
-            rDevice.SetBackground(Wallpaper(COL_TRANSPARENT));
+            const Color aColor = 
Application::GetSettings().GetStyleSettings().GetFieldColor();
+            rDevice.SetBackground(Wallpaper(aColor));
             rDevice.Erase();
             if (bIsLOK)
             {

Reply via email to