diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-11-12 03:08:54 +0100 |
---|---|---|
committer | Petr Mladek <pmladek@suse.cz> | 2012-11-20 19:00:56 +0100 |
commit | 3fa4875745008c502abea5b8a11d33192885ebbd (patch) | |
tree | f64eb8e6925038a0f6c848a63ef1a88959775f83 | |
parent | b382f0cb7c392b434a632f3de32ade9870e5ed6c (diff) |
make sure that the sort vector is large enough, fdo#56958
Change-Id: I7099e984a8b05ccd3324f3b9231c193e716eaf83
(cherry picked from commit cd545dcf511daedd548c11159b8c244f272e9cb6)
Signed-off-by: David Tardon <dtardon@redhat.com>
-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 7ebbb474da79..c9c770734be6 100644 --- a/sc/source/ui/dbgui/tpsort.cxx +++ b/sc/source/ui/dbgui/tpsort.cxx @@ -236,6 +236,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++ ) |