]> git.lyx.org Git - features.git/commitdiff
fix a rebreaking bug
authorAlfredo Braunstein <abraunst@lyx.org>
Fri, 27 Feb 2004 12:53:58 +0000 (12:53 +0000)
committerAlfredo Braunstein <abraunst@lyx.org>
Fri, 27 Feb 2004 12:53:58 +0000 (12:53 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8463 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/text.C

index 9eab00a653e256add185d8db99eff81d2b49036c..a6e59fd7b15995100c1d84a9cb4436d8f92b3f75 100644 (file)
@@ -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>
 
index e9546a69c416288561e5a262724d6d6d13bdd5aa..450366c39be44b964eaf007e1497c57d2a04b293 100644 (file)
@@ -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;