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

Resolves: fdo#88735 crash after calling sort after subtotal removal

Change-Id: Ia30271426ea47b7bf5af85d16591a02e6d52b3d9
üst 8419fa8c
...@@ -150,7 +150,7 @@ void ScTabPageSortFields::Reset( const SfxItemSet* /* rArgSet */ ) ...@@ -150,7 +150,7 @@ void ScTabPageSortFields::Reset( const SfxItemSet* /* rArgSet */ )
FillFieldLists(0); FillFieldLists(0);
// ListBox selection: // ListBox selection:
if ( aSortData.maKeyState[0].bDoSort ) if (!aSortData.maKeyState.empty() && aSortData.maKeyState[0].bDoSort)
{ {
// Make sure that the all sort keys are reset // Make sure that the all sort keys are reset
for ( sal_uInt16 i=nSortKeyCount; i<aSortData.GetSortKeyCount(); i++ ) for ( sal_uInt16 i=nSortKeyCount; i<aSortData.GetSortKeyCount(); i++ )
......
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