[Libreoffice-commits] core.git: Branch 'libreoffice-4-3-6' - sc/source

Caolán McNamara caolanm at redhat.com
Tue Jan 27 06:07:17 PST 2015


 sc/source/ui/cctrl/checklistmenu.cxx |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 5193f7fd1d4bbabc783621c7707075f09d679ad6
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Sat Jan 24 20:37:36 2015 +0000

    Resolves: tdf#81124 crash on setting autofilter on column with no content
    
    Change-Id: Id53e589789144d892427a8a4ec1af1926aa97b52
    (cherry picked from commit 3a5fa612b4afb72b5f91877a5c52e25c7604ae1a)
    Reviewed-on: https://gerrit.libreoffice.org/14160
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>
    Tested-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>

diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx
index 1b05eff..51166aa 100644
--- a/sc/source/ui/cctrl/checklistmenu.cxx
+++ b/sc/source/ui/cctrl/checklistmenu.cxx
@@ -1091,6 +1091,8 @@ void ScCheckListMenuWindow::selectCurrentMemberOnly(bool bSet)
 {
     setAllMemberState(!bSet);
     SvTreeListEntry* pEntry = maChecks.GetCurEntry();
+    if (!pEntry)
+        return;
     maChecks.CheckEntry(pEntry, bSet );
 }
 
@@ -1486,7 +1488,6 @@ void ScCheckListBox::KeyInput( const KeyEvent& rKEvt )
     if ( rKey.GetCode() == KEY_RETURN || rKey.GetCode() == KEY_SPACE )
     {
         SvTreeListEntry* pEntry = GetCurEntry();
-
         if ( pEntry )
         {
             bool bCheck = ( GetCheckButtonState( pEntry ) == SV_BUTTON_CHECKED );


More information about the Libreoffice-commits mailing list