summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorPranav Kant <pranavk@collabora.co.uk>2018-03-23 16:24:24 +0530
committerJan Holesovsky <kendy@collabora.com>2018-05-22 12:04:01 +0200
commit90ecfa9ddce9731dc10bbaaf86d57400d0dd6df1 (patch)
tree23c22397d6e76363396aa7c535acdb3262676557 /sw
parent11514728644853f31de6588e27cb4b9b15765708 (diff)
lok: don't post events on disposed window
Change-Id: I7721380b1bb6e9ec21338a72523326d0cae6729e Reviewed-on: https://gerrit.libreoffice.org/51778 Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> Tested-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/uno/unotxdoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/uibase/uno/unotxdoc.cxx b/sw/source/uibase/uno/unotxdoc.cxx
index e8dbe796ca5b..f578c5480bb4 100644
--- a/sw/source/uibase/uno/unotxdoc.cxx
+++ b/sw/source/uibase/uno/unotxdoc.cxx
@@ -3492,7 +3492,7 @@ void SwXTextDocument::postKeyEvent(int nType, int nCharCode, int nKeyCode)
SolarMutexGuard aGuard;
VclPtr<vcl::Window> pWindow = getDocWindow();
- if (!pWindow)
+ if (!pWindow || pWindow->IsDisposed())
return;
LOKAsyncEventData* pLOKEv = new LOKAsyncEventData;