sd/source/ui/view/ViewShellManager.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 27f7770e3e9be60b0caef8469666474151a753fb
Author:     Justin Luth <justin.l...@collabora.com>
AuthorDate: Tue Nov 5 11:05:17 2024 -0500
Commit:     Justin Luth <jl...@mail.com>
CommitDate: Fri Nov 8 02:14:19 2024 +0100

    tdf#95852 sd: not TopViewShell if mbFormShellAboveParent
    
    This fixes a 5.0 regression from
    commit 967a386bccb15b99915a1e878e42450fbe9a2d0e
    on Wed Nov 5 20:15:32 2014 +0100
        Fix for SUSE L3 bug 624546 (freedesktop 83733)
    
    Change-Id: Id5ec9a853f8abcc329d03434cd6cfcf35195bd2f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176086
    Reviewed-by: Marco Cecchetti <marco.cecche...@collabora.com>
    Tested-by: Jenkins
    Reviewed-by: Justin Luth <jl...@mail.com>

diff --git a/sd/source/ui/view/ViewShellManager.cxx 
b/sd/source/ui/view/ViewShellManager.cxx
index 5c733d6a2b02..c2026022139c 100644
--- a/sd/source/ui/view/ViewShellManager.cxx
+++ b/sd/source/ui/view/ViewShellManager.cxx
@@ -752,7 +752,7 @@ void ViewShellManager::Implementation::UpdateShellStack()
 
     SfxShell* pPreviousTopViewShell = mpTopViewShell;
     // Update the pointer to the top-most active view shell.
-    mpTopViewShell = (maActiveViewShells.empty())
+    mpTopViewShell = (maActiveViewShells.empty() || mbFormShellAboveParent)
         ? nullptr : maActiveViewShells.begin()->mpShell;
 
     bool bTopViewShellChanged = mpTopViewShell != pPreviousTopViewShell;

Reply via email to