]> git.lyx.org Git - lyx.git/blobdiff - src/rowpainter.cpp
* Only enter inset which return true on isActive(). This is the behavior in the curso...
[lyx.git] / src / rowpainter.cpp
index c38f31196e8acb4ceaa41965c1247b5edc9e5f7f..748658f093d83381622ce2c3e29aa9c80e89d902 100644 (file)
@@ -1061,12 +1061,12 @@ void paintText(BufferView & bv,
 
        // and grey out above (should not happen later)
 //     lyxerr << "par ascent: " << text.getPar(vi.p1).ascent() << endl;
-       if (vi.y1 > 0 && vi.update_strategy != SingleParUpdate)
+       if (vi.y1 > 0 && vi.update_strategy == FullScreenUpdate)
                pain.fillRectangle(0, 0, bv.workWidth(), vi.y1, Color::bottomarea);
 
        // and possibly grey out below
 //     lyxerr << "par descent: " << text.getPar(vi.p1).ascent() << endl;
-       if (vi.y2 < bv.workHeight() && vi.update_strategy != SingleParUpdate)
+       if (vi.y2 < bv.workHeight() && vi.update_strategy == FullScreenUpdate)
                pain.fillRectangle(0, vi.y2, bv.workWidth(), bv.workHeight() - vi.y2, Color::bottomarea);
 }