summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
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;