Kaydet (Commit) 996f44c3 authored tarafından Ivan Timofeev's avatar Ivan Timofeev

fdo#46144: "Distributy Columns Evenly" does not work with the selected columns

regression from f7303fca:

-    SvUShorts aWish( nTmp, nTmp ),
+    std::vector<sal_uInt16> aWish( nTmp, nTmp ),
               aMins( nTmp, nTmp );
üst 67d01fb5
...@@ -1469,16 +1469,11 @@ void SwDoc::AdjustCellWidth( const SwCursor& rCursor, sal_Bool bBalance ) ...@@ -1469,16 +1469,11 @@ void SwDoc::AdjustCellWidth( const SwCursor& rCursor, sal_Bool bBalance )
if ( ! aTabCols.Count() ) if ( ! aTabCols.Count() )
return; return;
const sal_uInt8 nTmp = (sal_uInt8)Max( sal_uInt16(255), sal_uInt16(aTabCols.Count() + 1) ); std::vector<sal_uInt16> aWish(aTabCols.Count() + 1);
std::vector<sal_uInt16> aWish( nTmp, nTmp ), std::vector<sal_uInt16> aMins(aTabCols.Count() + 1);
aMins( nTmp, nTmp );
sal_uInt16 i; 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 ); ::lcl_CalcColValues( aWish, aTabCols, pStart, pEnd, sal_True );
//Es ist Robuster wenn wir die Min-Werte fuer die ganze Tabelle berechnen. //Es ist Robuster wenn wir die Min-Werte fuer die ganze Tabelle berechnen.
......
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