sd/source/ui/dlg/sdtreelb.cxx |    7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

New commits:
commit 2d88ea62d4b6663cf8839e5484e2ae8042112f81
Author:     Jim Raykowski <rayk...@gmail.com>
AuthorDate: Sat Mar 9 16:01:00 2024 -0900
Commit:     Jim Raykowski <rayk...@gmail.com>
CommitDate: Thu Mar 14 00:23:15 2024 +0100

    tdf#160093 Fix SdNavigator empty after inserting formula OLE object
    
    or OLE Object...
    
    Also fixes empty tree occurance when multiple Draw/Impress documents
    are opened at once.
    
    Change-Id: I03d714bf96700d3a7df661fca91cceda703149f1
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/164607
    Tested-by: Jenkins
    Reviewed-by: Jim Raykowski <rayk...@gmail.com>

diff --git a/sd/source/ui/dlg/sdtreelb.cxx b/sd/source/ui/dlg/sdtreelb.cxx
index 5bed03fa24db..9883ad847ae0 100644
--- a/sd/source/ui/dlg/sdtreelb.cxx
+++ b/sd/source/ui/dlg/sdtreelb.cxx
@@ -1278,10 +1278,9 @@ void SdPageObjsTLV::Fill(const SdDrawDocument* pInDoc, 
bool bAllPages, const OUS
     sal_uInt16 nPage = 0;
     const sal_uInt16 nMaxPages = m_pDoc->GetPageCount();
 
-    sd::DrawViewShell* pDrawViewShell = lcl_getDrawViewShell(m_pDoc);
-    if (!pDrawViewShell)
-        return;
-    PageKind eDrawViewShellPageKind = pDrawViewShell->GetPageKind();
+    PageKind eDrawViewShellPageKind = PageKind::Standard;
+    if (sd::DrawViewShell* pDrawViewShell = lcl_getDrawViewShell(m_pDoc))
+        eDrawViewShellPageKind = pDrawViewShell->GetPageKind();
 
     while( nPage < nMaxPages )
     {

Reply via email to