]> git.lyx.org Git - features.git/commitdiff
I may have gone a bit too far in revision 19834: restore the selection painting.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 27 Aug 2007 14:59:23 +0000 (14:59 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 27 Aug 2007 14:59:23 +0000 (14:59 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19835 a592a061-630c-0410-9148-cb99ea01b6c8

src/rowpainter.cpp

index 0ad2f6e894c27b9104d4c1f38d08faf7e50adc88..ca2618eb803e1d2218afffaa06e2ec4b380e4e89 100644 (file)
@@ -915,9 +915,11 @@ void paintPar
                        pi.pain.setDrawingEnabled(inside);
                        RowPainter rp(pi, text, pit, *rit, bidi, x, y);
                        // Clear background of this row
-                       pi.pain.fillRectangle(x, y - rit->ascent(),
-                               tm.width(), rit->height(),
-                               text.backgroundColor());
+                       // (if paragraph background was not cleared)
+                       if (!repaintAll && row_has_changed)
+                               pi.pain.fillRectangle(x, y - rit->ascent(),
+                                       tm.width(), rit->height(),
+                                       text.backgroundColor());
 
                        // Instrumentation for testing row cache (see also
                        // 12 lines lower):