Revert "Do not modify the changed() status of rows when no drawing has taken place"

This reverts commit c6f8f51525.

I accidentally committed this patch, which I am testing as
a fix to 9388.
This commit is contained in:
Scott Kostyshak 2015-02-08 16:39:06 -05:00
parent 74b538f75d
commit d81fe084a6

View File

@ -1878,7 +1878,6 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type const pit, int const
} }
// Row signature; has row changed since last paint? // Row signature; has row changed since last paint?
if (pi.pain.isDrawingEnabled())
row.setCrc(pm.computeRowSignature(row, bparams)); row.setCrc(pm.computeRowSignature(row, bparams));
bool row_has_changed = row.changed() bool row_has_changed = row.changed()
|| rowSlice == bv_->lastRowSlice(); || rowSlice == bv_->lastRowSlice();
@ -1917,8 +1916,7 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type const pit, int const
LYXERR(Debug::PAINTING, foreword << "pit=" << pit << " row=" << i LYXERR(Debug::PAINTING, foreword << "pit=" << pit << " row=" << i
<< " row_selection=" << row.selection() << " row_selection=" << row.selection()
<< " full_repaint=" << pi.full_repaint << " full_repaint=" << pi.full_repaint
<< " row_has_changed=" << row_has_changed << " row_has_changed=" << row_has_changed);
<< " drawingEnabled=" << pi.pain.isDrawingEnabled());
} }
// Backup full_repaint status and force full repaint // Backup full_repaint status and force full repaint