]> git.lyx.org Git - features.git/commitdiff
tiny simplification
authorAndré Pönitz <poenitz@gmx.net>
Fri, 21 Nov 2003 15:52:11 +0000 (15:52 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 21 Nov 2003 15:52:11 +0000 (15:52 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8115 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/rowpainter.C

index f67591c2f4cc72a1f7c3c30018c3f33eaaaae432..f8a316c79dbcae0257673d25ec6e7358f99ce9e0 100644 (file)
@@ -1,3 +1,8 @@
+
+2003-11-21  André Pönitz  <poenitz@gmx.net>
+
+       * rowpainter.C: simplification
+
 2003-11-21  Alfredo Braunstein  <abraunst@lyx.org>
 
        * text3.C (dispatch): make possible to extend a word/row selection
index 9f5dde9d1e23326fa491a04b25036aca5416820c..03f6976374573b9cf7fa1ec0cfba8fa79aefc94e 100644 (file)
@@ -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, LyXText & text, int x, int baseline)
                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);
 }