Apache OpenOffice (AOO) Bugzilla – Attachment #77582: patch_in_AdjustColumns_to_fix_this_issue for issue #118878
long nGutter = 0;
// <--
for ( sal_uInt16 i = 0; i < pAttr->GetNumCols(); ++i )
for ( sal_uInt16 i = 0; i < pAttr->GetNumCols() && pCol; ++i )
{
if( !bOrtho )
long nInnerWidth = ( nAvail - nGutter ) / pAttr->GetNumCols();
pCol = Lower();
for( sal_uInt16 i = 0; i < pAttr->GetNumCols(); pCol = pCol->GetNext(), ++i )
for( sal_uInt16 i = 0; i < pAttr->GetNumCols() && pCol; pCol = pCol->GetNext(), ++i )
SwTwips nWidth;
if ( i == pAttr->GetNumCols() - 1 )