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.
This commit is contained in:
Jean-Marc Lasgouttes 2016-07-06 11:32:54 +02:00
parent 86c33c96a0
commit b874bdfd40

View File

@ -3079,12 +3079,8 @@ void BufferView::draw(frontend::Painter & pain)
switch (d->update_strategy_) { switch (d->update_strategy_) {
case NoScreenUpdate: 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"); LYXERR(Debug::PAINTING, "Strategy: NoScreenUpdate");
pi.full_repaint = true; // nothing to do
pi.pain.setDrawingEnabled(false);
tm.draw(pi, 0, y);
break; break;
case SingleParUpdate: case SingleParUpdate: