]> git.lyx.org Git - features.git/commitdiff
TextMetrics::drawParagraph(): Fix drawing bug reported by Richard by backing up the...
authorAbdelrazak Younes <younes@lyx.org>
Mon, 14 Jan 2008 16:15:40 +0000 (16:15 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 14 Jan 2008 16:15:40 +0000 (16:15 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22553 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index 360b3c772abf703f4075d20557e219641bd591fc..a57253ecc9b1567ea64f68eb4072eca542db57fc 100644 (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;
                }