summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-11 13:10:29 +0100
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>2017-08-11 18:14:20 +0200
commit87f31ec5a8fb968bde0ff1d1bd41324883b6e263 (patch)
treef43f5ac5a489f9d9cfa0fb28b35d4296904012a2
parent6ff9371a30e972d3e9baad00b23e26cd8ff445dc (diff)
Resolves: tdf#111571 crash on restarting writer with modeless biblio dialog
Change-Id: I2663f84c28721f61c1ed7c8d92a228cafa8f1177 Reviewed-on: https://gerrit.libreoffice.org/41037 Reviewed-by: Michael Stahl <mstahl@redhat.com> Tested-by: Jenkins <ci@libreoffice.org>
-rw-r--r--sw/source/ui/index/swuiidxmrk.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx
index a4b817296e76..b266a1082554 100644
--- a/sw/source/ui/index/swuiidxmrk.cxx
+++ b/sw/source/ui/index/swuiidxmrk.cxx
@@ -1633,8 +1633,8 @@ SwAuthMarkFloatDlg::SwAuthMarkFloatDlg(SfxBindings* _pBindings,
{
Initialize(pInfo);
SwWrtShell* pWrtShell = ::GetActiveWrtShell();
- OSL_ENSURE(pWrtShell, "No shell?");
- m_aContent.ReInitDlg(*pWrtShell);
+ if (pWrtShell)
+ m_aContent.ReInitDlg(*pWrtShell);
}
void SwAuthMarkFloatDlg::Activate()