diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-03-21 16:55:59 +0100 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2023-03-22 12:03:50 +0000 |
commit | 74f398bb58510087cc4a11bb2253715771a2c6b2 (patch) | |
tree | 617b374a33d8fcd67be2e74225dbc3ef1d9159d0 /sw/source/uibase/envelp/syncbtn.cxx | |
parent | d41c3c820dad7c78bc57815e0f4a6999d125561d (diff) |
sw: check GetActiveView()
See https://crashreport.libreoffice.org/stats/signature/SwView::GetDocShell()
Change-Id: I90ebbff5082f1f9cae7fa3b940cbb9796d6c6dd3
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149223
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sw/source/uibase/envelp/syncbtn.cxx')
-rw-r--r-- | sw/source/uibase/envelp/syncbtn.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/uibase/envelp/syncbtn.cxx b/sw/source/uibase/envelp/syncbtn.cxx index 0b30c494b044..715d769633f0 100644 --- a/sw/source/uibase/envelp/syncbtn.cxx +++ b/sw/source/uibase/envelp/syncbtn.cxx @@ -44,8 +44,7 @@ SwSyncChildWin::SwSyncChildWin(vcl::Window* _pParent, weld::Dialog* pDlg = pBtnDlg->getDialog(); Point aPos; - SwView* pActiveView = ::GetActiveView(); - if (pActiveView) + if (SwView* pActiveView = GetActiveView()) { const SwEditWin &rEditWin = pActiveView->GetEditWin(); aPos = rEditWin.OutputToScreenPixel(Point(0, 0)); |