diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-11-12 03:08:54 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-11-12 05:23:00 +0100 |
commit | cd545dcf511daedd548c11159b8c244f272e9cb6 (patch) | |
tree | 3fae36c569c913c3b227c14035643a3ba9cc9dbf /sc | |
parent | c45b6496e87fe74570a41821bc5f4fbdb3d3cf8e (diff) |
make sure that the sort vector is large enough, fdo#56958
Change-Id: I7099e984a8b05ccd3324f3b9231c193e716eaf83
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/tpsort.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx index 3e557a1fe9fb..0955b8abda94 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -246,6 +246,9 @@ sal_Bool ScTabPageSortFields::FillItemSet( SfxItemSet& rArgSet ) if ( nSortPos[i] == LISTBOX_ENTRY_NOTFOUND ) nSortPos[i] = 0; } + if( nSortKeyCount >= aNewSortData.maKeyState.size() ) + aNewSortData.maKeyState.resize(nSortKeyCount); + if ( nSortPos[0] > 0 ) { for ( sal_uInt16 i=0; i<nSortKeyCount; i++ ) |