summaryrefslogtreecommitdiff
path: root/vcl/source/control
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-13 16:32:43 +0100
committerAndras Timar <andras.timar@collabora.com>2016-07-18 11:18:58 +0200
commit7f50a2253fec328b6bd2dbdae8be6c2d4dc9928f (patch)
tree3b656697d411ac2bbc30b5359f7d0930a391f565 /vcl/source/control
parentb40be03b49f3352a309bec6b0c4e37cac9c4bb88 (diff)
Related: rhbz#1343766 a11y queries during dispose trigger listbox crashes
though not able to reproduce, I have an in-house complaint similar to commit f120abb446bf3f5230ed06a3b148654dde36bb94 Author: Caolán McNamara <caolanm@redhat.com> Date: Wed Jun 8 11:35:15 2016 +0100 Resolves: rhbz#1343766 a11y queries during dispose trigger combobox crashes except with a listbox in the bt (cherry picked from commit c615943bda57eadfa73c14a7314938aabe0bd16f) Change-Id: Id31561e009a1f0ec9272a0e7216296e4017e5688 Reviewed-on: https://gerrit.libreoffice.org/27189 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk> (cherry picked from commit 583207377705dea2bfe09db3e33d7947c473d862)
Diffstat (limited to 'vcl/source/control')
-rw-r--r--vcl/source/control/lstbox.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx
index e15d09e5add7..121e2c0a238c 100644
--- a/vcl/source/control/lstbox.cxx
+++ b/vcl/source/control/lstbox.cxx
@@ -1208,6 +1208,8 @@ void ListBox::EnableMultiSelection( bool bMulti, bool bStackSelection )
bool ListBox::IsMultiSelectionEnabled() const
{
+ if (!mpImplLB)
+ return false;
return mpImplLB->IsMultiSelectionEnabled();
}