]> git.lyx.org Git - features.git/commitdiff
put a hack in rowBreakPoint inside #if 0
authorAlfredo Braunstein <abraunst@lyx.org>
Tue, 28 Oct 2003 14:04:56 +0000 (14:04 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Tue, 28 Oct 2003 14:04:56 +0000 (14:04 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7996 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text.C

index 7b04d944e82469de5204a1e00e3e122166da6843..9a35a386fd11d0dfc970bf5df3eb916fee3dd00e 100644 (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>
 
index de6db3e31cd09db45f21ca50a8bdb24cbb99f930..1cdea810c8a8c99f11103f11c73f4cde2bbad2f7 100644 (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;
        }