summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-05-11 19:01:37 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-05-11 20:01:05 +0200
commitc975bee3a7db0d318d1e460312be2922a09c7cea (patch)
treef9784e7cd3b5cb0e95f77afbd64ec4a3e743771d
parent26ebcb023ef3d38956085cbb39416e6f148ab351 (diff)
tdf#91227 vcl: fix crash in ImplListBox during paste special in Writer
Change-Id: I65637e7a205c443ff104a1ed5469aabd69571635
-rw-r--r--vcl/source/control/ilstbox.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/ilstbox.cxx b/vcl/source/control/ilstbox.cxx
index 131f598a2314..a5ef9a949e3c 100644
--- a/vcl/source/control/ilstbox.cxx
+++ b/vcl/source/control/ilstbox.cxx
@@ -2241,6 +2241,9 @@ void ImplListBox::SetNoSelection()
void ImplListBox::GetFocus()
{
+ if (!maLBWindow || maLBWindow->IsDisposed())
+ return;
+
maLBWindow->GrabFocus();
}