From b874bdfd402a94428c8f5fe7ef2180146069120a Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Wed, 6 Jul 2016 11:32:54 +0200 Subject: [PATCH] Skip all drawing with NoScreenUpdate strategy It seems that it was needed in 0b0c27ef, but nowadays the metrics are not touched when we set this strategy. --- src/BufferView.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index f02cb66686..cff66ba5aa 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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: