diff --git a/src/ChangeLog b/src/ChangeLog index 9eab00a653..a6e59fd7b1 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,6 @@ +2004-02-27 Alfredo Braunstein + + * text.C (rowBreakPoint): fix a bug showing with very large insets 2004-02-25 André Pönitz diff --git a/src/text.C b/src/text.C index e9546a69c4..450366c39b 100644 --- a/src/text.C +++ b/src/text.C @@ -527,8 +527,6 @@ void LyXText::rowBreakPoint(ParagraphList::iterator pit, Row & row) const } x += thiswidth; - //lyxerr << "i: " << i << " x: " - //<< x << " width: " << width << endl; chunkwidth += thiswidth; } @@ -537,10 +535,11 @@ void LyXText::rowBreakPoint(ParagraphList::iterator pit, Row & row) const if (x >= width) { // if no break before, break here if (point == end || chunkwidth >= width - left) { - if (i > pos) { + if (i > pos) point = i; - break; - } + else + point = i + 1; + } // exit on last registered breakpoint: break;