summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-11-07 21:04:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-11-08 09:18:40 +0100
commitc4fc1dda75fe7aefce50d77ad05319cd143e6e25 (patch)
treea6ec25afda5ec9610b9a770c9f3fb889848cc61c /svtools
parent1ebb9355a5ffcefdb14dfd54258aeda97d0369c1 (diff)
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 <caolanm@redhat.com> Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/control/ctrlbox.cxx2
1 files changed, 2 insertions, 0 deletions
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());