sd/source/ui/unoidl/unomodel.cxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit ac8b4ad344c23c31392444f66843b4ccf2073dde Author: Miklos Vajna <vmik...@collabora.com> AuthorDate: Mon May 22 09:15:50 2023 +0200 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Thu May 25 09:06:27 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/+/152079 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152187 Reviewed-by: Andras Timar <andras.ti...@collabora.com> Tested-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index b0c45ea1913b..93e941dfeee9 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2622,6 +2622,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;