]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/screen.C
fix math fonts with LyX/Mac
[lyx.git] / src / frontends / screen.C
index 93f30487b88fb6d6dda9f29aacfa36ac44f1f905..79ac58e5ae6153d43421d4ea10d0b342ae94aaf9 100644 (file)
@@ -213,9 +213,11 @@ bool LyXScreen::fitCursor(BufferView * bv)
 
        bv->cursor().getPos(x, y);
        bv->cursor().getDim(asc, desc);
-       //lyxerr << "LyXScreen::fitCursor: x: " << x << " y: " << y
-       //      << "  top_y: " << top_y << endl;
-       
+       lyxerr[Debug::DEBUG] << "LyXScreen::fitCursor: x: " << x
+                            << " y: " << y
+                            << "  top_y: " << top_y
+                            << endl;
+
        bool const big_row = h / 4 < asc + desc && asc + desc < h;
 
        if (y + desc - top_y >= h) {
@@ -265,11 +267,13 @@ void LyXScreen::redraw(BufferView & bv)
                        LColor::bottomarea);
        }
 
-       lyxerr << "Redraw screen" << endl;
+       lyxerr[Debug::DEBUG] << "Redraw screen" << endl;
 
        expose(0, 0, workarea().workWidth(), workarea().workHeight());
 
        workarea().getPainter().end();
+
+       showCursor(bv);
 }