small simplification
--
Those who desire to give up Freedom in order to gain Security, will not have,
nor do they deserve, either one. (T. Jefferson or B. Franklin or both...)
? .text.C.swp
? 1.diff
? 1.diff.gz
? 2.diff
? 3.diff
? ?t
? fullredraw.diff
? par-row.diff
? tabular-il.diff
? textcache.diff
? insets/1.diff
? mathed/cursor.diff
? support/1.diff
Index: rowpainter.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/rowpainter.C,v
retrieving revision 1.91
diff -u -p -r1.91 rowpainter.C
--- rowpainter.C 21 Nov 2003 08:35:13 -0000 1.91
+++ rowpainter.C 21 Nov 2003 15:47:57 -0000
@@ -973,10 +973,10 @@ void RowPainter::paint()
int paintRows(BufferView const & bv, LyXText const & text,
ParagraphList::iterator pit, RowList::iterator rit,
- int xo, int y, int yf, int yo)
+ int xo, int yo, int y)
{
//lyxerr << " paintRows: rit: " << &*rit << endl;
- int const yy = yf - y;
+ int const yy = yo;
int const y2 = bv.painter().paperHeight();
ParagraphList::iterator end = text.ownerParagraphs().end();
@@ -1013,11 +1013,11 @@ int paintText(BufferView & bv)
ParagraphList::iterator pit;
RowList::iterator rit = bv.text->getRowNearY(topy, pit);
int const y = pit->y + rit->y_offset() - topy;
- return paintRows(bv, *bv.text, pit, rit, 0, y, y, 0);
+ return paintRows(bv, *bv.text, pit, rit, 0, 0, y);
}
-void paintTextInset(BufferView & bv, LyXText & text, int x, int baseline)
+void paintTextInset(BufferView & bv, LyXText & text, int xo, int baseline)
{
RowList::iterator rit = text.firstRow();
RowList::iterator end = text.endRow();
@@ -1030,9 +1030,9 @@ void paintTextInset(BufferView & bv, LyX
text.nextRow(pit, rit);
}
if (y_offset < 0)
- paintRows(bv, text, pit, rit, x, 0, y, y);
+ paintRows(bv, text, pit, rit, xo, y, 0);
else
- paintRows(bv, text, pit, rit, x, 0, y_offset, y_offset);
+ paintRows(bv, text, pit, rit, xo, y_offset, 0);
}