[Libreoffice-commits] core.git: editeng/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Thu Oct 15 15:56:16 UTC 2020
editeng/source/editeng/editview.cxx | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 5bb402a796b26767459c8e1e9d2f24796468879b
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Thu Oct 15 13:04:59 2020 +0100
Commit: Caolán McNamara <caolanm at 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 <caolanm at redhat.com>
Reviewed-by: Caolán McNamara <caolanm at 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;
More information about the Libreoffice-commits
mailing list