git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7621 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
John Levon 2003-08-27 20:12:08 +00:00
parent 36b144f9ca
commit 7bfa084387
2 changed files with 8 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2003-08-27 John Levon <levon@movementarian.org>
* screen.C: fix cursor in ERT (bug 1341)
2003-08-26 Alfredo Braunstein <abraunst@libero.it> 2003-08-26 Alfredo Braunstein <abraunst@libero.it>
* screen.C (redraw): remove an uneeded updateRowPositions * screen.C (redraw): remove an uneeded updateRowPositions

View File

@ -158,6 +158,10 @@ void LyXScreen::showCursor(BufferView & bv)
shape = REVERSED_L_SHAPE; shape = REVERSED_L_SHAPE;
} }
// The ERT language hack needs fixing up
if (realfont.language() == latex_language)
shape = BAR_SHAPE;
int ascent = font_metrics::maxAscent(realfont); int ascent = font_metrics::maxAscent(realfont);
int descent = font_metrics::maxDescent(realfont); int descent = font_metrics::maxDescent(realfont);
int h = ascent + descent; int h = ascent + descent;