--- kspread_cell.cc.orig 2003-10-31 07:21:00.000000000 +0100 +++ kspread_cell.cc 2003-10-31 07:22:35.000000000 +0100 @@ -830,7 +830,7 @@ void KSpreadCell::makeLayout( QPainter & m_dExtraWidth = max_width; } // Occupy the needed extra cells in vertical direction - double max_height = dblHeight( 0 ); + double max_height = dblHeight( _row ); int r = _row; ende = ( max_height >= h ); for( r = _row + 1; !ende && r < _row + 500; ++r )