starmath/source/view.cxx | 3 +++ 1 file changed, 3 insertions(+) New commits: commit cd7a62a260b2006ea837393b8f0900d336494ce2 Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Apr 22 16:38:35 2021 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Fri Apr 23 09:49:07 2021 +0200
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 <caol...@redhat.com> 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(); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits