From 5ee4cae5f340eb4a65a9f2ed970c7cac9160dc32 Mon Sep 17 00:00:00 2001 From: John Levon Date: Thu, 13 Mar 2003 21:19:01 +0000 Subject: [PATCH] remove pointless 2nd arg to setHeightOfParagraph git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6493 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 7 +++++++ src/lyxtext.h | 2 +- src/text.C | 8 ++++---- src/text2.C | 8 ++++---- src/text3.C | 2 +- 5 files changed, 17 insertions(+), 10 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 1e0d3ce54a..7d800515ca 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2003-03-13 John Levon + + * lyxtext.h: + * text.C: + * text2.C: + * text3.C: remove pointless 2nd arg to setHeightOfParagraph() + 2003-03-13 John Levon * text3.C: fix appendix redrawing diff --git a/src/lyxtext.h b/src/lyxtext.h index 68571cfb05..7d96ce63c5 100644 --- a/src/lyxtext.h +++ b/src/lyxtext.h @@ -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 diff --git a/src/text.C b/src/text.C index 2f3ea97c19..beb5587cea 100644 --- a/src/text.C +++ b/src/text.C @@ -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 diff --git a/src/text2.C b/src/text2.C index 10fc7e03d7..cfcbe8847a 100644 --- a/src/text2.C +++ b/src/text2.C @@ -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()); } diff --git a/src/text3.C b/src/text3.C index 9a1f7efaa0..7dcedf4a16 100644 --- a/src/text3.C +++ b/src/text3.C @@ -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()); -- 2.39.2