From 70406ea7627e4bd5cf7ec590afc8a09db6c1a0eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Thu, 22 Dec 2022 10:45:52 +0000 Subject: [PATCH] Related: tdf#152637 Erase after changing background color MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic63714304c32f066347a2654510e1fa1fbd16184 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144745 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- cui/source/tabpages/numfmt.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/cui/source/tabpages/numfmt.cxx b/cui/source/tabpages/numfmt.cxx index f48a3b60c95e..ea52910f9fd1 100644 --- a/cui/source/tabpages/numfmt.cxx +++ b/cui/source/tabpages/numfmt.cxx @@ -135,6 +135,7 @@ void SvxNumberPreview::Paint(vcl::RenderContext& rRenderContext, const ::tools:: svtools::ColorConfig aColorConfig; rRenderContext.SetTextColor(aColorConfig.GetColorValue(svtools::FONTCOLOR).nColor); rRenderContext.SetBackground(aColorConfig.GetColorValue(svtools::DOCCOLOR).nColor); + rRenderContext.Erase(); vcl::Font aDrawFont = rRenderContext.GetFont(); Size aSzWnd(GetOutputSizePixel());