sw/source/ui/frmdlg/frmpage.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
New commits: commit 631215d52a78b728b0b2f3438b2faa9ce24a5960 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Mar 16 14:36:18 2023 +0000 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Sat Mar 18 11:18:22 2023 +0000 Resolves: tdf#152704 old image remains underneath when new image drawn in this dialog preview widget Change-Id: Id33995d9a9557d235178be0d12cc6b44e146ff4c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149017 Reviewed-by: Michael Stahl <michael.st...@allotropia.de> Tested-by: Jenkins diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index 8dff4cd41e59..e32147d2266d 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -2602,7 +2602,8 @@ void BmpWindow::SetDrawingArea(weld::DrawingArea* pDrawingArea) void BmpWindow::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&) { // Setup - rRenderContext.SetBackground(); + rRenderContext.SetBackground(Wallpaper(Application::GetSettings().GetStyleSettings().GetDialogColor())); + rRenderContext.Erase(); // #i119307# the graphic might have transparency, set up white as the color // to use when drawing a rectangle under the image rRenderContext.SetLineColor(COL_WHITE);