fix a rebreaking bug

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8463 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2004-02-27 12:53:58 +00:00
parent 8943967181
commit c3ed8dc263
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,6 @@
2004-02-27 Alfredo Braunstein <abraunst@lyx.org>
* text.C (rowBreakPoint): fix a bug showing with very large insets
2004-02-25 André Pönitz <poenitz@gmx.net>

View File

@ -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;