[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - svx/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Tue Jun 25 08:24:03 UTC 2019
svx/source/dialog/measctrl.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 85f61124eade5c9a06be8a693403af141461e18b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Jun 22 21:00:20 2019 +0100
Commit: Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Tue Jun 25 10:23:27 2019 +0200
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 at libreoffice.org>
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);
More information about the Libreoffice-commits
mailing list