diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-23 14:42:28 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2015-01-23 15:11:01 +0000 |
commit | 0442cd217645aa4fdd924e4c2e4f90a77f1fbbad (patch) | |
tree | 66d596673b34393de108d8db342e58bb239b923e | |
parent | 8419fa8c28dd9c5f64a72d28d561b3817d781232 (diff) |
Resolves: fdo#88735 crash after calling sort after subtotal removal
Change-Id: Ia30271426ea47b7bf5af85d16591a02e6d52b3d9
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 55557b286473..ba3703f87fc0 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -150,7 +150,7 @@ void ScTabPageSortFields::Reset( const SfxItemSet* /* rArgSet */ ) FillFieldLists(0); // ListBox selection: - if ( aSortData.maKeyState[0].bDoSort ) + if (!aSortData.maKeyState.empty() && aSortData.maKeyState[0].bDoSort) { // Make sure that the all sort keys are reset for ( sal_uInt16 i=nSortKeyCount; i<aSortData.GetSortKeyCount(); i++ ) |