svtools/source/control/ctrlbox.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 68ea22378d5db5d2c51193a7d9771d4569d4e5aa
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Thu Aug 21 17:14:36 2025 +0200
Commit:     Xisco Fauli <xiscofa...@libreoffice.org>
CommitDate: Thu Aug 21 22:01:11 2025 +0200

    tdf#167812 Calc in Dark mode: font dropdown shows white rectangles (GTK3)
    
    regression from
        commit e0d4d178caff1414a9a21fa57f06bc8d4d2c389a
        Author: Noel Grandin <noel.gran...@collabora.co.uk>
        Date:   Mon Jan 13 15:03:05 2025 +0200
        Change alpha behavour of OutputDevice::SetFillColor
    
    Change-Id: Ifa34c795d2f69b6ef258757073c89f73ca64041a
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190004
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>
    (cherry picked from commit 3275aca2e8eb44d7c167541e86455f50dae204b3)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/190022
    Reviewed-by: Xisco Fauli <xiscofa...@libreoffice.org>

diff --git a/svtools/source/control/ctrlbox.cxx 
b/svtools/source/control/ctrlbox.cxx
index 2cadcd57b518..e275343a46ee 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -829,13 +829,12 @@ OutputDevice& FontNameBox::CachePreview(size_t nIndex, 
Point* pTopLeft,
         if (nPage >= rVirtualDevs.size())
         {
             bool bIsLOK = comphelper::LibreOfficeKit::isActive();
-            if (bIsLOK) // allow transparent background in LOK case
-                
rVirtualDevs.emplace_back(VclPtr<VirtualDevice>::Create(DeviceFormat::WITH_ALPHA));
-            else
-                
rVirtualDevs.emplace_back(m_xComboBox->create_render_virtual_device());
+            
rVirtualDevs.emplace_back(VclPtr<VirtualDevice>::Create(DeviceFormat::WITH_ALPHA));
 
             VirtualDevice& rDevice = *rVirtualDevs.back();
             rDevice.SetOutputSizePixel(Size(gUserItemSz.Width(), 
gUserItemSz.Height() * gPreviewsPerDevice));
+            rDevice.SetBackground(Wallpaper(COL_TRANSPARENT));
+            rDevice.Erase();
             if (bIsLOK)
             {
                 rDevice.SetDPIX(nDPIX);

Reply via email to