mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-26 03:11:59 +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_) {
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user