mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +00:00
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:
parent
8943967181
commit
c3ed8dc263
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user