]> git.lyx.org Git - features.git/commitdiff
Revert "Skip all drawing with NoScreenUpdate strategy"
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 7 Jul 2016 12:21:55 +0000 (14:21 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 7 Jul 2016 12:22:08 +0000 (14:22 +0200)
This reverts commit b874bdfd402a94428c8f5fe7ef2180146069120a.

It was commited by mistake and actually does not seem to improve
performance.

src/BufferView.cpp

index cff66ba5aae08945b664147d20ddad4c15edbfc5..f02cb6668613fba7a97ca28763d0cbf8dfc5a472 100644 (file)
@@ -3079,8 +3079,12 @@ void BufferView::draw(frontend::Painter & pain)
        switch (d->update_strategy_) {
 
        case NoScreenUpdate:
+               // If no screen painting is actually needed, only some the different
+               // coordinates of insets and paragraphs needs to be updated.
                LYXERR(Debug::PAINTING, "Strategy: NoScreenUpdate");
-               // nothing to do
+               pi.full_repaint = true;
+               pi.pain.setDrawingEnabled(false);
+               tm.draw(pi, 0, y);
                break;
 
        case SingleParUpdate: