- next = line->GetNext();
- if ( line->IsLinebreakAllowed() &&
- (next == cell ||
- next->IsLinebreakAllowed()) &&
- (!prev || prev->IsLinebreakAllowed()) )
+ line = line->GetNext();
+ for ( int n = 0; line != cell; line = line->GetNext() )
+ {
+ if ( line->IsLinebreakAllowed() )