Kaydet (Commit) cd545dcf authored tarafından Markus Mohrhard's avatar Markus Mohrhard

make sure that the sort vector is large enough, fdo#56958

Change-Id: I7099e984a8b05ccd3324f3b9231c193e716eaf83
üst c45b6496
......@@ -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++ )
......
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