From f897f21c401bd94fa5184647215801e2a3586b26 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 21 Nov 2003 16:02:29 +0000 Subject: [PATCH] more rowpainter simplification git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8116 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/rowpainter.C | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/rowpainter.C b/src/rowpainter.C index 03f6976374..0be4405485 100644 --- a/src/rowpainter.C +++ b/src/rowpainter.C @@ -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); } -- 2.39.2