svtools/source/control/ctrlbox.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 4bdcccaedb5f1be85784dffd70fc017d1ed2fc5b Author: Noel Grandin <noelgran...@gmail.com> AuthorDate: Sat Aug 23 12:28:04 2025 +0200 Commit: Noel Grandin <noelgran...@gmail.com> CommitDate: Sat Aug 23 13:58:11 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> diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 83e45b132d71..9df628bab74d 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -832,7 +832,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) {