summaryrefslogtreecommitdiff
path: root/starmath
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-04-22 16:38:35 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-04-23 09:49:07 +0200
commitcd7a62a260b2006ea837393b8f0900d336494ce2 (patch)
tree055bb36b8874e00212622f1af2a295b923e4a706 /starmath
parentfe7fd5bdd2ae8b0829dd5947a7acd0b75970a51c (diff)
designate which widget to get default focus
Change-Id: Ie5968b80583f8c560b145463a60e2e86992fdb96 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114513 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'starmath')
-rw-r--r--starmath/source/view.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/starmath/source/view.cxx b/starmath/source/view.cxx
index a007d1d4ff0b..e36596316386 100644
--- a/starmath/source/view.cxx
+++ b/starmath/source/view.cxx
@@ -100,6 +100,8 @@ SmGraphicWindow::SmGraphicWindow(SmViewShell& rShell)
, mxGraphic(new SmGraphicWidget(rShell, *this))
, mxGraphicWin(new weld::CustomWeld(*m_xBuilder, "mathview", *mxGraphic))
{
+ InitControlBase(mxGraphic->GetDrawingArea());
+
nColumnPixW = nLinePixH = GetSettings().GetStyleSettings().GetScrollBarSize();
mxScrolledWindow->connect_hadjustment_changed(LINK(this, SmGraphicWindow, ScrollHdl));
@@ -112,6 +114,7 @@ SmGraphicWindow::SmGraphicWindow(SmViewShell& rShell)
void SmGraphicWindow::dispose()
{
+ InitControlBase(nullptr);
mxGraphicWin.reset();
mxGraphic.reset();
mxScrolledWindow.reset();