]> git.lyx.org Git - features.git/commitdiff
Skip all drawing with NoScreenUpdate strategy
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 6 Jul 2016 09:32:54 +0000 (11:32 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 6 Jul 2016 09:32:54 +0000 (11:32 +0200)
It seems that it was needed in 0b0c27ef, but nowadays the metrics are
not touched when we set this strategy.

src/BufferView.cpp

index f02cb6668613fba7a97ca28763d0cbf8dfc5a472..cff66ba5aae08945b664147d20ddad4c15edbfc5 100644 (file)
@@ -3079,12 +3079,8 @@ 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");
-               pi.full_repaint = true;
-               pi.pain.setDrawingEnabled(false);
-               tm.draw(pi, 0, y);
+               // nothing to do
                break;
 
        case SingleParUpdate: