mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
remove pointless 2nd arg to setHeightOfParagraph
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6493 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
1d94e70166
commit
5ee4cae5f3
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user