]> git.lyx.org Git - features.git/blobdiff - src/mathed/InsetMathNest.cpp
* BufferView: Make use of ScreenUpdateStrategy::NoScreenUpdate, avoid a screen redraw...
[features.git] / src / mathed / InsetMathNest.cpp
index 13732bcc4b1c613cfc8c02666f4f89e76e00280b..8dd278cac45e9d3f2d08d6243530d98c2d7acf3e 100644 (file)
@@ -246,9 +246,10 @@ void InsetMathNest::drawSelection(PainterInfo & pi, int x, int y) const
                return;
 
        // FIXME: hack to get position cache warm
+       bool const original_drawing_state = pi.pain.isDrawingEnabled();
        pi.pain.setDrawingEnabled(false);
        draw(pi, x, y);
-       pi.pain.setDrawingEnabled(true);
+       pi.pain.setDrawingEnabled(original_drawing_state);
 
        CursorSlice s1 = cur.selBegin();
        CursorSlice s2 = cur.selEnd();