summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-06-22 21:00:20 +0100
committerXisco Faulí <xiscofauli@libreoffice.org>2019-06-25 10:23:27 +0200
commit85f61124eade5c9a06be8a693403af141461e18b (patch)
tree0ccc0ff147a8747dbfc068d5df510493556e014c
parent1c6bac6e003e9f280a29cc83974bdfb3d06b24a9 (diff)
Resolves: tdf#126039 erase old content before drawing new content
Change-Id: I0006467f5c172b6a0cb8b9bc4c9a0181fd57a8ac Reviewed-on: https://gerrit.libreoffice.org/74585 Tested-by: Jenkins Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
-rw-r--r--svx/source/dialog/measctrl.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/svx/source/dialog/measctrl.cxx b/svx/source/dialog/measctrl.cxx
index 1e641d6b5d42..21935c85c70b 100644
--- a/svx/source/dialog/measctrl.cxx
+++ b/svx/source/dialog/measctrl.cxx
@@ -76,6 +76,9 @@ SvxXMeasurePreview::~SvxXMeasurePreview()
void SvxXMeasurePreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle&)
{
+ rRenderContext.SetBackground(rRenderContext.GetSettings().GetStyleSettings().GetWindowColor());
+ rRenderContext.Erase();
+
rRenderContext.Push(PushFlags::MAPMODE);
rRenderContext.SetMapMode(m_aMapMode);