sd/source/ui/unoidl/unomodel.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit ef76718e7146b9c7c878d598d2e9b5125b278d69 Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Mon May 22 09:15:50 2023 +0200 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Tue May 23 15:37:52 2023 +0200 sd: fix crash in SdXImpressDocument::postMouseEvent() Crashreport signature: program/libsdlo.so SdXImpressDocument::postMouseEvent(int, int, int, int, int, int) sd/source/ui/unoidl/unomodel.cxx:2615 program/libmergedlo.so doc_postMouseEvent desktop/source/lib/init.cxx:5007 Change-Id: I321f39b284f5917048925bf45c9a6417ac9cb2ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152138 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index f53144d14775..3ff5fd0de266 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2623,6 +2623,11 @@ void SdXImpressDocument::postMouseEvent(int nType, int nX, int nY, int nCount, i SdrPageView* pPageView = pDrawView->GetSdrPageView(); SdrPage* pPage = pPageView->GetPage(); ::sd::Window* pActiveWin = pViewShell->GetActiveWindow(); + if (!pActiveWin) + { + return; + } + if (LokControlHandler::postMouseEvent(pPage, pDrawView, *pActiveWin, nType, aPointHMM, nCount, nButtons, nModifier)) return;