summaryrefslogtreecommitdiff
path: root/cui/source/tabpages/numfmt.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-12-22 10:45:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2022-12-22 12:10:12 +0000
commit70406ea7627e4bd5cf7ec590afc8a09db6c1a0eb (patch)
tree4c42b93c3f23ec47be642b7923871f60dd3520f3 /cui/source/tabpages/numfmt.cxx
parentb844605b101bd752c8a0c07117b5d3faf2b2aebb (diff)
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>
Diffstat (limited to 'cui/source/tabpages/numfmt.cxx')
-rw-r--r--cui/source/tabpages/numfmt.cxx1
1 files changed, 1 insertions, 0 deletions
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());