summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2016-07-13 16:32:43 +0100
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-07-15 12:56:27 +0000
commit4dbcd1649d4be5366362cdbcb85c1f0566fa082d (patch)
treec492d03d55b7f557d1a779ad711bf8d5c98af88b /vcl
parente4f935f138d941f537227a344d4b93b05f951457 (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 Change-Id: Id31561e009a1f0ec9272a0e7216296e4017e5688 (cherry picked from commit c615943bda57eadfa73c14a7314938aabe0bd16f) Reviewed-on: https://gerrit.libreoffice.org/27188 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/listbox.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/vcl/source/control/listbox.cxx b/vcl/source/control/listbox.cxx
index f5d0dad283cd..a5dbe999a5ba 100644
--- a/vcl/source/control/listbox.cxx
+++ b/vcl/source/control/listbox.cxx
@@ -1189,6 +1189,8 @@ void ListBox::EnableMultiSelection( bool bMulti, bool bStackSelection )
bool ListBox::IsMultiSelectionEnabled() const
{
+ if (!mpImplLB)
+ return false;
return mpImplLB->IsMultiSelectionEnabled();
}