diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-11-02 19:27:04 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@allotropia.de> | 2023-10-09 17:59:40 +0200 |
commit | c107793bdca1da86fc4a6081dbcc4f64455580b4 (patch) | |
tree | e90501f8b35ce2cb73b4deb2effbf02ec9e12787 | |
parent | 174b3a7e48393577c815037a3bc8146470dcf78e (diff) |
Resolves: rhbz#1893846 if last close had insert, index dialog open
when starting a new writer document
Change-Id: I83131c01aa53208a321abade48d48a6f7965d0ff
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105201
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
(cherry picked from commit 32f81b3a974737def611db36812225570e5d42be)
-rw-r--r-- | sw/source/ui/index/swuiidxmrk.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx index 33a0eab8cd69..5eca069b963b 100644 --- a/sw/source/ui/index/swuiidxmrk.cxx +++ b/sw/source/ui/index/swuiidxmrk.cxx @@ -955,7 +955,8 @@ SwIndexMarkFloatDlg::SwIndexMarkFloatDlg(SfxBindings* _pBindings, "modules/swriter/ui/indexentry.ui", "IndexEntryDialog") , m_aContent(m_xDialog, *m_xBuilder, bNew, *::GetActiveWrtShell()) { - m_aContent.ReInitDlg(*::GetActiveWrtShell()); + if (SwWrtShell* pSh = ::GetActiveWrtShell()) + m_aContent.ReInitDlg(*pSh); Initialize(pInfo); } |