diff options
author | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-26 19:09:54 +0400 |
---|---|---|
committer | Ivan Timofeev <timofeev.i.s@gmail.com> | 2012-02-26 19:29:54 +0400 |
commit | 996f44c310520e3d7868c62d336aaec7bb0f845a (patch) | |
tree | e09a232fcb9bd6fae9767f45569de3bd04202380 /sw/source | |
parent | 67d01fb5d4010a2486e47cdd9f55f38a2da162f2 (diff) |
fdo#46144: "Distributy Columns Evenly" does not work with the selected columns
regression from f7303fcac779f99931bfba48e8bfcf9c081af67f:
- SvUShorts aWish( nTmp, nTmp ),
+ std::vector<sal_uInt16> aWish( nTmp, nTmp ),
aMins( nTmp, nTmp );
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/docnode/ndtbl1.cxx | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/sw/source/core/docnode/ndtbl1.cxx b/sw/source/core/docnode/ndtbl1.cxx index 9e8ea04e1108..b65077415f01 100644 --- a/sw/source/core/docnode/ndtbl1.cxx +++ b/sw/source/core/docnode/ndtbl1.cxx @@ -1469,16 +1469,11 @@ void SwDoc::AdjustCellWidth( const SwCursor& rCursor, sal_Bool bBalance ) if ( ! aTabCols.Count() ) return; - const sal_uInt8 nTmp = (sal_uInt8)Max( sal_uInt16(255), sal_uInt16(aTabCols.Count() + 1) ); - std::vector<sal_uInt16> aWish( nTmp, nTmp ), - aMins( nTmp, nTmp ); + std::vector<sal_uInt16> aWish(aTabCols.Count() + 1); + std::vector<sal_uInt16> aMins(aTabCols.Count() + 1); + sal_uInt16 i; - for ( i = 0; i <= aTabCols.Count(); ++i ) - { - aWish.push_back( 0 ); - aMins.push_back( 0 ); - } ::lcl_CalcColValues( aWish, aTabCols, pStart, pEnd, sal_True ); //Es ist Robuster wenn wir die Min-Werte fuer die ganze Tabelle berechnen. |