1 |
From ff01c5e8126645de91891ce3b9acdca2b0c1af4f Mon Sep 17 00:00:00 2001 |
2 |
From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com> |
3 |
Date: Wed, 13 Jul 2016 16:32:43 +0100 |
4 |
Subject: [PATCH] Related: rhbz#1343766 a11y queries during dispose trigger |
5 |
listbox crashes |
6 |
MIME-Version: 1.0 |
7 |
Content-Type: text/plain; charset=UTF-8 |
8 |
Content-Transfer-Encoding: 8bit |
9 |
|
10 |
though not able to reproduce, I have an in-house complaint similar to |
11 |
|
12 |
commit f120abb446bf3f5230ed06a3b148654dde36bb94 |
13 |
Author: Caolán McNamara <caolanm@redhat.com> |
14 |
Date: Wed Jun 8 11:35:15 2016 +0100 |
15 |
|
16 |
Resolves: rhbz#1343766 a11y queries during dispose trigger combobox crashes |
17 |
|
18 |
except with a listbox in the bt |
19 |
|
20 |
(cherry picked from commit c615943bda57eadfa73c14a7314938aabe0bd16f) |
21 |
|
22 |
Change-Id: Id31561e009a1f0ec9272a0e7216296e4017e5688 |
23 |
--- |
24 |
vcl/source/control/lstbox.cxx | 2 ++ |
25 |
1 file changed, 2 insertions(+) |
26 |
|
27 |
diff --git a/vcl/source/control/lstbox.cxx b/vcl/source/control/lstbox.cxx |
28 |
index e15d09e..121e2c0 100644 |
29 |
--- a/vcl/source/control/lstbox.cxx |
30 |
+++ b/vcl/source/control/lstbox.cxx |
31 |
@@ -1208,6 +1208,8 @@ void ListBox::EnableMultiSelection( bool bMulti, bool bStackSelection ) |
32 |
|
33 |
bool ListBox::IsMultiSelectionEnabled() const |
34 |
{ |
35 |
+ if (!mpImplLB) |
36 |
+ return false; |
37 |
return mpImplLB->IsMultiSelectionEnabled(); |
38 |
} |
39 |
|
40 |
-- |
41 |
2.7.4 |
42 |
|