mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-05 13:26:21 +00:00
put a hack in rowBreakPoint inside #if 0
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7996 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4588bb075a
commit
29cc4f048b
@ -1,3 +1,6 @@
|
||||
2003-10-28 Alfredo Braunstein <abraunst@libero.it>
|
||||
|
||||
* text.C (rowBreakPoint): put a hack inside #if 0
|
||||
|
||||
2003-10-28 André Pönitz <poenitz@gmx.net>
|
||||
|
||||
|
11
src/text.C
11
src/text.C
@ -525,8 +525,11 @@ void LyXText::rowBreakPoint(ParagraphList::iterator pit, Row & row) const
|
||||
}
|
||||
}
|
||||
// exit on last registered breakpoint:
|
||||
#if 0
|
||||
// hack removed:
|
||||
if (i + 1 < end)
|
||||
break;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
InsetOld * in = pit->getInset(i);
|
||||
@ -540,10 +543,14 @@ void LyXText::rowBreakPoint(ParagraphList::iterator pit, Row & row) const
|
||||
}
|
||||
}
|
||||
|
||||
#if 0
|
||||
// hack removed (connected with the #if 0 above):
|
||||
if (point == end && i != end && x >= width) {
|
||||
// didn't find one, break at the point we reached the edge
|
||||
point = i + 1;
|
||||
} else if (i == end && x < width) {
|
||||
} else
|
||||
#endif
|
||||
if (i == end && x < width) {
|
||||
// maybe found one, but the par is short enough.
|
||||
point = end;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user