diff options
author | Caolán McNamara <caolanm@redhat.com> | 2015-01-23 14:42:28 +0000 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-01-24 16:54:50 +0100 |
commit | ac9e1086bab4d3c2c45aa44091c5e3b031247859 (patch) | |
tree | 215a48147905a9ecddcbec38ed6ceed087bf1d96 | |
parent | cd9c86808ea13226e6f309a48182a62d310f8bbe (diff) |
Resolves: fdo#88735 crash after calling sort after subtotal removal
Change-Id: Ia30271426ea47b7bf5af85d16591a02e6d52b3d9
(cherry picked from commit 0442cd217645aa4fdd924e4c2e4f90a77f1fbbad)
Reviewed-on: https://gerrit.libreoffice.org/14140
Reviewed-by: Eike Rathke <erack@redhat.com>
Tested-by: Eike Rathke <erack@redhat.com>
-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 a9a793c2e238..1f211191b9b3 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -151,7 +151,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++ ) |