From 5a3401c66eeb5f73599a4882bbc313cd9efee2a0 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Thu, 7 Jul 2016 14:21:55 +0200 Subject: [PATCH] Revert "Skip all drawing with NoScreenUpdate strategy" This reverts commit b874bdfd402a94428c8f5fe7ef2180146069120a. It was commited by mistake and actually does not seem to improve performance. --- src/BufferView.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/BufferView.cpp b/src/BufferView.cpp index cff66ba5aa..f02cb66686 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -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: