diff options
author | Sarper Akdemir <sarper.akdemir@allotropia.de> | 2024-06-10 10:40:27 +0200 |
---|---|---|
committer | Sarper Akdemir <sarper.akdemir@allotropia.de> | 2024-06-10 10:46:23 +0200 |
commit | 196fab317381872a80879420c0a2b8fbcb08af39 (patch) | |
tree | 0bbd75bce36df1ffba975601bf86e5cf6aa9df52 | |
parent | 148aabdb074b593c9c8d7b0b62695e490d46996f (diff) |
Fix crash on search initated from notes pane on the OutlineViewprivate/quwex/notespane-search
Change-Id: I128f5398a9abec57168d72a711fadab2584c4a94
-rw-r--r-- | sd/source/ui/view/Outliner.cxx | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/sd/source/ui/view/Outliner.cxx b/sd/source/ui/view/Outliner.cxx index 727cef1a7f9f..f43570bb9a68 100644 --- a/sd/source/ui/view/Outliner.cxx +++ b/sd/source/ui/view/Outliner.cxx @@ -999,14 +999,17 @@ void SdOutliner::DetectChange() pFakeShell = pViewShellManager->GetOverridingMainShell(); auto bViewChanged = false; - if( !pFakeShell && pDrawViewShell ) - bViewChanged = (aPosition.meEditMode != pDrawViewShell->GetEditMode() || aPosition.mePageKind != pDrawViewShell->GetPageKind()); - else if (pFakeShell) - { - auto pPage = pFakeShell->getCurrentPage(); - auto ePageKind = pPage ? pPage->GetPageKind() : PageKind::Standard; - auto eEditMode = EditMode::Page; - bViewChanged = (aPosition.meEditMode != eEditMode || aPosition.mePageKind != ePageKind); + if( pDrawViewShell ) + { + if( !pFakeShell ) + bViewChanged = (aPosition.meEditMode != pDrawViewShell->GetEditMode() || aPosition.mePageKind != pDrawViewShell->GetPageKind()); + else + { + auto pPage = pFakeShell->getCurrentPage(); + auto ePageKind = pPage ? pPage->GetPageKind() : PageKind::Standard; + auto eEditMode = EditMode::Page; + bViewChanged = (aPosition.meEditMode != eEditMode || aPosition.mePageKind != ePageKind); + } } // Detect whether the view has been switched from the outside. |