| commit | 9447d7dd2470693c57211be9231b4792dae9fb1b | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Mon Nov 07 21:04:30 2022 +0000 |
| committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | Wed Nov 09 20:18:22 2022 +0100 |
| tree | 40624f29dda83b01e045e1c93b059c6395218710 | |
| parent | 76f8dbf386525ab33844a7fe71b978615247734f [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> (cherry picked from commit c4fc1dda75fe7aefce50d77ad05319cd143e6e25) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142311 Tested-by: Jenkins Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
diff --git a/svtools/source/control/ctrlbox.cxx b/svtools/source/control/ctrlbox.cxx index 37952f5..af86920 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());