svtools/source/control/ctrlbox.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit 9447d7dd2470693c57211be9231b4792dae9fb1b Author: Caolán McNamara <[email protected]> AuthorDate: Mon Nov 7 21:04:30 2022 +0000 Commit: Adolfo Jayme Barrientos <[email protected]> CommitDate: Wed Nov 9 20:18:22 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 <[email protected]> Reviewed-by: Caolán McNamara <[email protected]> (cherry picked from commit c4fc1dda75fe7aefce50d77ad05319cd143e6e25) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142311 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <[email protected]> diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 37952f5336e2..af86920a5726 100644 --- a/svtools/source/control/ctrlbox.cxx +++ b/svtools/source/control/ctrlbox.cxx @@ -1617,6 +1617,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());
