Kaydet (Commit) b101ff56 authored tarafından Caolán McNamara's avatar Caolán McNamara

Resolves: tdf#101165 crash on deselecting all filters

this affects 5-1, but not master because of

7967e5e5 which changed
the trigger in ScCheckListMenuWindow::setAllMemberState
but lets fix it in master anyway in case there's another
route in here

Change-Id: I49162bb73bf6dbef5cff68d35d10da2c47d9f2b5
üst a5d14493
...@@ -1714,8 +1714,11 @@ SvTreeListEntry* ScCheckListBox::ShowCheckEntry( const OUString& sName, ScCheckL ...@@ -1714,8 +1714,11 @@ SvTreeListEntry* ScCheckListBox::ShowCheckEntry( const OUString& sName, ScCheckL
{ {
if ( !pEntry ) if ( !pEntry )
{ {
if ( rMember.mbDate ) if (rMember.mbDate)
{ {
if (rMember.maDateParts.empty())
return nullptr;
SvTreeListEntry* pYearEntry = FindEntry( nullptr, rMember.maDateParts[0] ); SvTreeListEntry* pYearEntry = FindEntry( nullptr, rMember.maDateParts[0] );
if ( !pYearEntry ) if ( !pYearEntry )
pYearEntry = InsertEntry( rMember.maDateParts[0], nullptr, true ); pYearEntry = InsertEntry( rMember.maDateParts[0], nullptr, true );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment