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.cecchetti@collabora.com>
Tested-by: Jenkins
Reviewed-by: Justin Luth <jluth@mail.com>
This commit is contained in:
Justin Luth 2024-11-05 11:05:17 -05:00 committed by Justin Luth
parent 42533c94ec
commit 27f7770e3e

View File

@ -752,7 +752,7 @@ void ViewShellManager::Implementation::UpdateShellStack()
SfxShell* pPreviousTopViewShell = mpTopViewShell; SfxShell* pPreviousTopViewShell = mpTopViewShell;
// Update the pointer to the top-most active view shell. // Update the pointer to the top-most active view shell.
mpTopViewShell = (maActiveViewShells.empty()) mpTopViewShell = (maActiveViewShells.empty() || mbFormShellAboveParent)
? nullptr : maActiveViewShells.begin()->mpShell; ? nullptr : maActiveViewShells.begin()->mpShell;
bool bTopViewShellChanged = mpTopViewShell != pPreviousTopViewShell; bool bTopViewShellChanged = mpTopViewShell != pPreviousTopViewShell;