+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
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
// 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;
// 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
if (rawparfont !=
cursor.par()->getFontSettings(bview->buffer()->params,
cursor.par()->size() - 1))
- redoHeightOfParagraph(bview, cursor);
+ redoHeightOfParagraph(bview);
return;
}
}
// 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
}
-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);
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());
}
// 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());