Related: tdf#152637 Erase after changing background color

Change-Id: Ic63714304c32f066347a2654510e1fa1fbd16184
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/144745
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2022-12-22 12:10:12 +00:00
parent b844605b10
commit 70406ea762
+1
View File
@@ -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());