svx/source/dialog/measctrl.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit 85f61124eade5c9a06be8a693403af141461e18b Author: Caolán McNamara <[email protected]> AuthorDate: Sat Jun 22 21:00:20 2019 +0100 Commit: Xisco Faulí <[email protected]> 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í <[email protected]> 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); _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
