]> git.lyx.org Git - features.git/commitdiff
remove pointless 2nd arg to setHeightOfParagraph
authorJohn Levon <levon@movementarian.org>
Thu, 13 Mar 2003 21:19:01 +0000 (21:19 +0000)
committerJohn Levon <levon@movementarian.org>
Thu, 13 Mar 2003 21:19:01 +0000 (21:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6493 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/lyxtext.h
src/text.C
src/text2.C
src/text3.C

index 1e0d3ce54af5843c11cd94040668232f6b67c0e7..7d800515caab1c493c783d138c5ab6a9125971c9 100644 (file)
@@ -1,3 +1,10 @@
+2003-03-13  John Levon  <levon@movementarian.org>
+
+       * lyxtext.h:
+       * text.C:
+       * text2.C:
+       * text3.C: remove pointless 2nd arg to setHeightOfParagraph()
+
 2003-03-13  John Levon  <levon@movementarian.org>
 
        * text3.C: fix appendix redrawing
index 68571cfb05e580a5565efa44fbb407ded42fbd0a..7d96ce63c5f99eda1df525804343bf63d72f794b 100644 (file)
@@ -169,7 +169,7 @@ public:
            specified paragraph.  needed, if the last characters font
            has changed.
            */
-       void redoHeightOfParagraph(BufferView *, LyXCursor const & cursor);
+       void redoHeightOfParagraph(BufferView *);
 
        /** insert a character, moves all the following breaks in the
          same Paragraph one to the right and make a little rebreak
index 2f3ea97c199c566c4bf7d14c50933d14ae5e6ad0..beb5587cea962ae36e43adacc0981ed6a9eeead9 100644 (file)
@@ -1680,7 +1680,7 @@ void LyXText::insertChar(BufferView * bview, char c)
                        // check, wether the last characters font has changed.
                        if (cursor.pos() && cursor.pos() == cursor.par()->size()
                            && rawparfont != rawtmpfont)
-                               redoHeightOfParagraph(bview, cursor);
+                               redoHeightOfParagraph(bview);
 
                        charInserted();
                        return;
@@ -1739,7 +1739,7 @@ void LyXText::insertChar(BufferView * bview, char c)
        // check, wether the last characters font has changed.
        if (cursor.pos() && cursor.pos() == cursor.par()->size()
            && rawparfont != rawtmpfont) {
-               redoHeightOfParagraph(bview, cursor);
+               redoHeightOfParagraph(bview);
        } else {
                // now the special right address boxes
                if (cursor.par()->layout()->margintype
@@ -2666,7 +2666,7 @@ void LyXText::backspace(BufferView * bview)
                                if (rawparfont !=
                                    cursor.par()->getFontSettings(bview->buffer()->params,
                                                                  cursor.par()->size() - 1))
-                                       redoHeightOfParagraph(bview, cursor);
+                                       redoHeightOfParagraph(bview);
                                return;
                        }
                }
@@ -2731,7 +2731,7 @@ void LyXText::backspace(BufferView * bview)
        // check, whether the last characters font has changed.
        if (rawparfont !=
            cursor.par()->getFontSettings(bview->buffer()->params, lastpos - 1)) {
-               redoHeightOfParagraph(bview, cursor);
+               redoHeightOfParagraph(bview);
        } else {
                // now the special right address boxes
                if (cursor.par()->layout()->margintype
index 10fc7e03d723c0031b32610d8f277ce39e5e6c7b..cfcbe8847a97e0dbd69746886bb4c1d8ac2256ac 100644 (file)
@@ -700,10 +700,10 @@ void LyXText::setFont(BufferView * bview, LyXFont const & font, bool toggleall)
 }
 
 
-void LyXText::redoHeightOfParagraph(BufferView * bview, LyXCursor const & cur)
+void LyXText::redoHeightOfParagraph(BufferView * bview)
 {
-       Row * tmprow = cur.row();
-       int y = cur.y() - tmprow->baseline();
+       Row * tmprow = cursor.row();
+       int y = cursor.y() - tmprow->baseline();
 
        setHeightOfRow(bview, tmprow);
 
@@ -718,7 +718,7 @@ void LyXText::redoHeightOfParagraph(BufferView * bview, LyXCursor const & cur)
        status(bview, LyXText::NEED_MORE_REFRESH);
        refresh_y = y;
        refresh_row = tmprow;
-       setCursor(bview, cur.par(), cur.pos(), false, cursor.boundary());
+       setCursor(bview, cursor.par(), cursor.pos(), false, cursor.boundary());
 }
 
 
index 9a1f7efaa0a97f9ef4da869c974c53b9b120c1e5..7dcedf4a169802888392c9c06fec18cf602fd3a0 100644 (file)
@@ -431,7 +431,7 @@ Inset::RESULT LyXText::dispatch(FuncRequest const & cmd)
                // we can set the refreshing parameters now
                status(cmd.view(), LyXText::NEED_MORE_REFRESH);
                updateCounters(cmd.view());
-               redoHeightOfParagraph(bv, cursor);
+               redoHeightOfParagraph(bv);
                refresh_y = 0;
                refresh_row = 0;
                setCursor(cmd.view(), cursor.par(), cursor.pos());