Blame SOURCES/0001-Resolves-rhbz-1893846-if-last-close-had-insert-index.patch

502fc9
From d59960d5de3f07726594d980152a3bfeb58bace9 Mon Sep 17 00:00:00 2001
502fc9
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
502fc9
Date: Mon, 2 Nov 2020 19:27:04 +0000
502fc9
Subject: [PATCH 1/8] Resolves: rhbz#1893846 if last close had insert, index
502fc9
 dialog open
502fc9
502fc9
when starting a new writer document
502fc9
502fc9
Change-Id: I83131c01aa53208a321abade48d48a6f7965d0ff
502fc9
---
502fc9
 sw/source/ui/index/swuiidxmrk.cxx | 3 ++-
502fc9
 1 file changed, 2 insertions(+), 1 deletion(-)
502fc9
502fc9
diff --git a/sw/source/ui/index/swuiidxmrk.cxx b/sw/source/ui/index/swuiidxmrk.cxx
502fc9
index 33a0eab8cd69..5eca069b963b 100644
502fc9
--- a/sw/source/ui/index/swuiidxmrk.cxx
502fc9
+++ b/sw/source/ui/index/swuiidxmrk.cxx
502fc9
@@ -955,7 +955,8 @@ SwIndexMarkFloatDlg::SwIndexMarkFloatDlg(SfxBindings* _pBindings,
502fc9
         "modules/swriter/ui/indexentry.ui", "IndexEntryDialog")
502fc9
     , m_aContent(m_xDialog, *m_xBuilder, bNew, *::GetActiveWrtShell())
502fc9
 {
502fc9
-    m_aContent.ReInitDlg(*::GetActiveWrtShell());
502fc9
+    if (SwWrtShell* pSh = ::GetActiveWrtShell())
502fc9
+        m_aContent.ReInitDlg(*pSh);
502fc9
     Initialize(pInfo);
502fc9
 }
502fc9
 
502fc9
-- 
502fc9
2.28.0
502fc9