TextMetrics::drawParagraph(): Fix drawing bug reported by Richard by backing up the full repaint flag.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22553 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2008-01-14 16:15:40 +00:00
parent 3d8828fa14
commit cb83883583

View File

@ -1895,10 +1895,15 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type pit, int x, int y) co
// Don't paint the row if a full repaint has not been requested
// and if it has not changed.
if (!pi.full_repaint && !row_has_changed) {
// Backup full_repaint status because some Inset (InsetTabular)
// requires a full repaint
bool tmp = pi.full_repaint;
// Paint only the insets if the text itself is
// unchanged.
rp.paintOnlyInsets();
y += row.descent();
// Restore full_repaint status.
pi.full_repaint = tmp;
continue;
}