sc/source/ui/dbgui/tpsort.cxx |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit 3fa4875745008c502abea5b8a11d33192885ebbd
Author: Markus Mohrhard <markus.mohrh...@googlemail.com>
Date:   Mon Nov 12 03:08:54 2012 +0100

    make sure that the sort vector is large enough, fdo#56958
    
    Change-Id: I7099e984a8b05ccd3324f3b9231c193e716eaf83
    (cherry picked from commit cd545dcf511daedd548c11159b8c244f272e9cb6)
    
    Signed-off-by: David Tardon <dtar...@redhat.com>

diff --git a/sc/source/ui/dbgui/tpsort.cxx b/sc/source/ui/dbgui/tpsort.cxx
index 7ebbb47..c9c7707 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++ )
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to