View | Details | Raw Unified | Return to issue 118878
Collapse All | Expand All

(-)sw/source/core/layout/colfrm.cxx (-2 / +2 lines)
Lines 371-377 Link Here
371
    long nGutter = 0;
371
    long nGutter = 0;
372
    // <--
372
    // <--
373
373
374
    for ( sal_uInt16 i = 0; i < pAttr->GetNumCols(); ++i )
374
    for ( sal_uInt16 i = 0; i < pAttr->GetNumCols() && pCol; ++i )
375
	{
375
	{
376
        if( !bOrtho )
376
        if( !bOrtho )
377
        {
377
        {
Lines 448-454 Link Here
448
    {
448
    {
449
        long nInnerWidth = ( nAvail - nGutter ) / pAttr->GetNumCols();
449
        long nInnerWidth = ( nAvail - nGutter ) / pAttr->GetNumCols();
450
        pCol = Lower();
450
        pCol = Lower();
451
        for( sal_uInt16 i = 0; i < pAttr->GetNumCols(); pCol = pCol->GetNext(), ++i )
451
        for( sal_uInt16 i = 0; i < pAttr->GetNumCols() && pCol; pCol = pCol->GetNext(), ++i )
452
        {
452
        {
453
            SwTwips nWidth;
453
            SwTwips nWidth;
454
            if ( i == pAttr->GetNumCols() - 1 )
454
            if ( i == pAttr->GetNumCols() - 1 )

Return to issue 118878