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:
Alfredo Braunstein 2003-10-28 14:04:56 +00:00
parent 4588bb075a
commit 29cc4f048b
2 changed files with 12 additions and 2 deletions

View File

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

View File

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