diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-08-16 11:54:38 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-08-18 16:06:42 +0000 |
commit | ecef794528282fa7e9fba93b6eff1dac097dae99 (patch) | |
tree | 35cb87e013e63608bb39109077cfc4235bd804bd | |
parent | 3242a37f35d2691a7fe080e571c96ee8e40786c4 (diff) |
Resolves: tdf#101165 crash on deselecting all filters
(cherry picked from commit b101ff56e874824fa9f0d37a8468b07dbf3d002c)
Change-Id: I49162bb73bf6dbef5cff68d35d10da2c47d9f2b5
Reviewed-on: https://gerrit.libreoffice.org/28165
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
-rw-r--r-- | sc/source/ui/cctrl/checklistmenu.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sc/source/ui/cctrl/checklistmenu.cxx b/sc/source/ui/cctrl/checklistmenu.cxx index e5897ec628bc..9d3298e78d22 100644 --- a/sc/source/ui/cctrl/checklistmenu.cxx +++ b/sc/source/ui/cctrl/checklistmenu.cxx @@ -1632,8 +1632,11 @@ SvTreeListEntry* ScCheckListBox::ShowCheckEntry( const OUString& sName, ScCheckL { if ( !pEntry ) { - if ( rMember.mbDate ) + if (rMember.mbDate) { + if (rMember.maDateParts.empty()) + return nullptr; + SvTreeListEntry* pYearEntry = FindEntry( nullptr, rMember.maDateParts[0] ); if ( !pYearEntry ) pYearEntry = InsertEntry( rMember.maDateParts[0], nullptr, true ); |