summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-12-10 14:06:09 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-12-10 22:04:01 +0100
commitf477d24127aacc849757f245a9bbd8a4c8561a6d (patch)
tree758e82bddeed18f7c0342e1044fd7f35c3ce2060 /svx
parent03b352b9599514e4e244e1907510713cf1331284 (diff)
Resolves: tdf#121946 first time draw uses gray bg
Change-Id: Ia0491eebe8fa7ea2c2377ca96c758c681da5470a Reviewed-on: https://gerrit.libreoffice.org/64876 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/charmap.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/svx/source/dialog/charmap.cxx b/svx/source/dialog/charmap.cxx
index 0d8a869a63d6..81ecf1f30320 100644
--- a/svx/source/dialog/charmap.cxx
+++ b/svx/source/dialog/charmap.cxx
@@ -624,6 +624,7 @@ void SvxShowCharSet::InitSettings(vcl::RenderContext& rRenderContext)
if (mbUpdateBackground)
{
rRenderContext.SetBackground(rStyleSettings.GetWindowColor());
+ rRenderContext.Erase();
mbUpdateBackground = false;
}