mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
86c33c96a0
commit
b874bdfd40
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user