Le 06/07/2016 à 14:24, Jean-Marc Lasgouttes a écrit :
commit b874bdfd402a94428c8f5fe7ef2180146069120a
Author: Jean-Marc Lasgouttes <[email protected]>
Date: Wed Jul 6 11:32:54 2016 +0200
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.
Oops! I did not mean to push this. I propose to wait a bit and to revert
it if the result is not good or not clear.
JMarc
---
src/BufferView.cpp | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
diff --git a/src/BufferView.cpp b/src/BufferView.cpp
index f02cb66..cff66ba 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: