Resolves: tdf#152311 inform EditEngine what the bg color is

so it can pick an appropiate color for "auto"

Change-Id: I6dba73a72ccb3106baf4b12ff8052b372e749a49
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/143501
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
This commit is contained in:
Caolán McNamara
2022-11-30 17:17:06 +01:00
parent afb362c60a
commit 885092535c
+1
View File
@@ -1559,6 +1559,7 @@ void WeldEditView::SetDrawingArea(weld::DrawingArea* pDrawingArea)
m_xEditView->SetOutputArea(tools::Rectangle(Point(0, 0), aOutputSize));
m_xEditView->SetBackgroundColor(aBgColor);
m_xEditEngine->SetBackgroundColor(aBgColor);
m_xEditEngine->InsertView(m_xEditView.get());
pDrawingArea->set_cursor(PointerStyle::Text);