sd/source/ui/dlg/navigatr.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit a1807689caca6a924969f8ed7dab5c7b09690325 Author: Julien Nabet <[email protected]> AuthorDate: Mon Apr 21 13:20:46 2025 +0200 Commit: Julien Nabet <[email protected]> CommitDate: Mon Apr 21 14:27:24 2025 +0200 Try to fix TB MSVC Analyzer Following 53ab599609803e395774b5e0c93192cf4cbe1a35 "Fix the ESC key behavior in the sidebar sdNavigator" Change-Id: Ie61e3fb91e4752629617279751a0bc3fbaaaec2b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/184406 Reviewed-by: Julien Nabet <[email protected]> Tested-by: Jenkins diff --git a/sd/source/ui/dlg/navigatr.cxx b/sd/source/ui/dlg/navigatr.cxx index ebb703b0e001..cd1eda46e92e 100644 --- a/sd/source/ui/dlg/navigatr.cxx +++ b/sd/source/ui/dlg/navigatr.cxx @@ -736,7 +736,7 @@ IMPL_LINK(SdNavigatorWin, KeyInputHdl, const KeyEvent&, rKEvt, bool) if (KEY_ESCAPE == rKEvt.GetKeyCode().GetCode()) { ::sd::ViewShellBase* pBase = ::sd::ViewShellBase::GetViewShellBase( mpBindings->GetDispatcher()->GetFrame()); - if (sd::SlideShow::IsRunning(*pBase)) + if (pBase && sd::SlideShow::IsRunning(*pBase)) { sd::SlideShow::Stop(*pBase); bConsumed = true;
