Fix bug 4320

http://bugzilla.lyx.org/show_bug.cgi?id=4320


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@25396 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2008-06-27 19:40:38 +00:00
parent 2dd4b555f9
commit e71b09793f
2 changed files with 7 additions and 6 deletions

View File

@ -865,13 +865,13 @@ gcd lyxblacktext 0 0 funclim x
deg lyxblacktext 0 0 func x
bmod lyxblacktext 0 0 func x
{ mathnormal 0 0 special x
} mathnormal 0 0 special x
$ mathnormal 0 0 special x
% mathnormal 0 0 special x
& mathnormal 0 0 special x
{ mathrm 0 0 special x
} mathrm 0 0 special x
$ mathrm 0 0 special x
% mathrm 0 0 special x
& mathrm 0 0 special x
## don't remove the space from the beginning of the next line
# mathnormal 0 0 special x
# mathrm 0 0 special x

View File

@ -63,6 +63,7 @@ bool InsetMathBrace::metrics(MetricsInfo & mi, Dimension & dim) const
void InsetMathBrace::draw(PainterInfo & pi, int x, int y) const
{
Font font = pi.base.font;
font.setShape(Font::UP_SHAPE);
font.setColor(Color::latex);
Dimension t = theFontMetrics(font).dimension('{');
pi.pain.text(x, y, '{', font);