]> git.lyx.org Git - lyx.git/blobdiff - src/TextMetrics.cpp
Fix bug 4463. The crash was due to a call to X from inside a child process.
[lyx.git] / src / TextMetrics.cpp
index a57253ecc9b1567ea64f68eb4072eca542db57fc..360b3c772abf703f4075d20557e219641bd591fc 100644 (file)
@@ -1895,15 +1895,10 @@ 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;
                }