From 29cc4f048ba0cf6414fb5c209d9cd126d77495ed Mon Sep 17 00:00:00 2001 From: Alfredo Braunstein Date: Tue, 28 Oct 2003 14:04:56 +0000 Subject: [PATCH] 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 --- src/ChangeLog | 3 +++ src/text.C | 11 +++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7b04d944e8..9a35a386fd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,6 @@ +2003-10-28 Alfredo Braunstein + + * text.C (rowBreakPoint): put a hack inside #if 0 2003-10-28 André Pönitz diff --git a/src/text.C b/src/text.C index de6db3e31c..1cdea810c8 100644 --- a/src/text.C +++ b/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; } -- 2.39.2