]> git.lyx.org Git - lyx.git/commitdiff
Revert "Do not modify the changed() status of rows when no drawing has taken place"
authorScott Kostyshak <skostysh@lyx.org>
Sun, 8 Feb 2015 21:39:06 +0000 (16:39 -0500)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 8 Feb 2015 21:39:06 +0000 (16:39 -0500)
This reverts commit c6f8f51525f711fdb85b4ef3d41cb6ee391bb919.

I accidentally committed this patch, which I am testing as
a fix to 9388.

src/TextMetrics.cpp

index 2119f8ed16037416359c9792d3187e8878516310..f29202c668644dc6dada33af211f7fd25ac7435b 100644 (file)
@@ -1878,8 +1878,7 @@ void TextMetrics::drawParagraph(PainterInfo & pi, pit_type const pit, int const
                }
 
                // 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()
                        || 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
                                << " row_selection="    << row.selection()
                                << " full_repaint="     << pi.full_repaint
-                               << " row_has_changed="  << row_has_changed
-                               << " drawingEnabled=" << pi.pain.isDrawingEnabled());
+                               << " row_has_changed="  << row_has_changed);
                }
 
                // Backup full_repaint status and force full repaint