summaryrefslogtreecommitdiff
path: root/svx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2022-08-30 10:45:19 +0100
committerCaolán McNamara <caolanm@redhat.com>2022-08-30 12:45:24 +0200
commit6af64a35270678ce07a9c2e5e3aeaa7507f79710 (patch)
treef655aa94e8875c6bc6f867cda4ad984674cf461c /svx
parentd2272426cc79d9aacf4a34c5fd7744b59c29e95b (diff)
its not ideal to wait until Paint to set the bg color
set it at construction time Change-Id: I8923ea8f79c4bf18054fc697e2b35caad1b12486 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139024 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r--svx/source/dialog/weldeditview.cxx7
1 files changed, 0 insertions, 7 deletions
diff --git a/svx/source/dialog/weldeditview.cxx b/svx/source/dialog/weldeditview.cxx
index 45d338ee4330..8b85ea1a53ed 100644
--- a/svx/source/dialog/weldeditview.cxx
+++ b/svx/source/dialog/weldeditview.cxx
@@ -161,13 +161,6 @@ void WeldEditView::Resize()
void WeldEditView::Paint(vcl::RenderContext& rRenderContext, const tools::Rectangle& rRect)
{
- const StyleSettings& rStyleSettings = Application::GetSettings().GetStyleSettings();
- Color aBgColor = rStyleSettings.GetWindowColor();
-
- rRenderContext.SetBackground(aBgColor);
- if (EditView* pEditView = GetEditView())
- pEditView->SetBackgroundColor(aBgColor);
-
DoPaint(rRenderContext, rRect);
}