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

New commits:
commit c4fc1dda75fe7aefce50d77ad05319cd143e6e25
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Nov 7 21:04:30 2022 +0000
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Tue Nov 8 09:18:40 2022 +0100

    Resolves: tdf#150273 use same bg as valueset
    
    Change-Id: Idbe4bf6eaad64fdd0865a2734b4c9d0221801df9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142401
    Tested-by: Caolán McNamara <caol...@redhat.com>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/svtools/source/control/ctrlbox.cxx 
b/svtools/source/control/ctrlbox.cxx
index dbfcf84e679f..414c07a8a58c 100644
--- a/svtools/source/control/ctrlbox.cxx
+++ b/svtools/source/control/ctrlbox.cxx
@@ -1575,6 +1575,8 @@ void SvtLineListBox::UpdatePreview()
         const auto nPos = (aVirDev->GetOutputSizePixel().Height() - 
aImage.GetSizePixel().Height()) / 2;
         aVirDev->Push(vcl::PushFlags::MAPMODE);
         aVirDev->SetMapMode(MapMode(MapUnit::MapPixel));
+        const StyleSettings& rSettings = 
Application::GetSettings().GetStyleSettings();
+        aVirDev->SetBackground(rSettings.GetFieldColor());
         aVirDev->Erase();
         aVirDev->DrawImage(Point(0, nPos), aImage);
         m_xControl->set_image(aVirDev.get());

Reply via email to