editeng/source/editeng/editview.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 5bb402a796b26767459c8e1e9d2f24796468879b Author: Caolán McNamara <caol...@redhat.com> AuthorDate: Thu Oct 15 13:04:59 2020 +0100 Commit: Caolán McNamara <caol...@redhat.com> CommitDate: Thu Oct 15 17:55:35 2020 +0200 don't crash if not hosted in a vcl::Window Change-Id: I6c1e774461db5d144d09de7d5c532407f1c572b1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104373 Tested-by: Caolán McNamara <caol...@redhat.com> Reviewed-by: Caolán McNamara <caol...@redhat.com> diff --git a/editeng/source/editeng/editview.cxx b/editeng/source/editeng/editview.cxx index b0f229ad9cef..ed8bd065dca2 100644 --- a/editeng/source/editeng/editview.cxx +++ b/editeng/source/editeng/editview.cxx @@ -492,6 +492,8 @@ void EditView::ShowCursor( bool bGotoCursor, bool bForceVisCursor, bool bActivat if (pImpEditView->mpViewShell && !bActivate) { + if (!pImpEditView->pOutWin) + return; VclPtr<vcl::Window> pParent = pImpEditView->pOutWin->GetParentWithLOKNotifier(); if (pParent && pParent->GetLOKWindowId() != 0) return; @@ -508,6 +510,8 @@ void EditView::HideCursor(bool bDeactivate) if (pImpEditView->mpViewShell && !bDeactivate) { + if (!pImpEditView->pOutWin) + return; VclPtr<vcl::Window> pParent = pImpEditView->pOutWin->GetParentWithLOKNotifier(); if (pParent && pParent->GetLOKWindowId() != 0) return; _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits