]> git.lyx.org Git - features.git/commitdiff
more rowpainter simplification
authorAndré Pönitz <poenitz@gmx.net>
Fri, 21 Nov 2003 16:02:29 +0000 (16:02 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 21 Nov 2003 16:02:29 +0000 (16:02 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8116 a592a061-630c-0410-9148-cb99ea01b6c8

src/rowpainter.C

index 03f6976374573b9cf7fa1ec0cfba8fa79aefc94e..0be4405485c499868b3bbfe5c0b20a194872e8e1 100644 (file)
@@ -1020,19 +1020,8 @@ int paintText(BufferView & bv)
 void paintTextInset(BufferView & bv, LyXText & text, int xo, int baseline)
 {
        RowList::iterator rit = text.firstRow();
-       RowList::iterator end = text.endRow();
        ParagraphList::iterator pit = text.ownerParagraphs().begin();
-
-       int y_offset = baseline - rit->ascent_of_text();
-       int y = y_offset;
-       while (rit != end && y + rit->height() <= 0) {
-               y += rit->height();
-               text.nextRow(pit, rit);
-       }
-       if (y_offset < 0)
-               paintRows(bv, text, pit, rit, xo, y, 0);
-       else
-               paintRows(bv, text, pit, rit, xo, y_offset, 0);
+       paintRows(bv, text, pit, rit, xo, baseline - rit->ascent_of_text(), 0);
 }