[Libreoffice-commits] core.git: Branch 'libreoffice-5-2' - vcl/source

Caolán McNamara caolanm at redhat.com
Wed Jun 8 10:38:53 UTC 2016


 vcl/source/control/combobox.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit f7b0cbf1df98a1c42fe25cfdbd9977fba78347c8
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Jun 8 11:35:15 2016 +0100

    Resolves: rhbz#1343766 a11y queries during dispose trigger combobox crashes
    
    Change-Id: I29863ca95e64ccd31795f78c29c89ff35009d718
    (cherry picked from commit f120abb446bf3f5230ed06a3b148654dde36bb94)

diff --git a/vcl/source/control/combobox.cxx b/vcl/source/control/combobox.cxx
index 3bd8197..19cdfbc 100644
--- a/vcl/source/control/combobox.cxx
+++ b/vcl/source/control/combobox.cxx
@@ -1015,11 +1015,15 @@ OUString ComboBox::GetEntry( sal_Int32 nPos ) const
 
 sal_Int32 ComboBox::GetEntryCount() const
 {
+    if (!m_pImpl->m_pImplLB)
+        return 0;
     return m_pImpl->m_pImplLB->GetEntryList()->GetEntryCount() - m_pImpl->m_pImplLB->GetEntryList()->GetMRUCount();
 }
 
 bool ComboBox::IsTravelSelect() const
 {
+    if (!m_pImpl->m_pImplLB)
+        return false;
     return m_pImpl->m_pImplLB->IsTravelSelect();
 }
 
@@ -1036,6 +1040,8 @@ void ComboBox::EnableMultiSelection( bool bMulti )
 
 bool ComboBox::IsMultiSelectionEnabled() const
 {
+    if (!m_pImpl->m_pImplLB)
+        return false;
     return m_pImpl->m_pImplLB->IsMultiSelectionEnabled();
 }
 


More information about the Libreoffice-commits mailing list