fix frac drawing in displaystyle

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@4888 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
André Pönitz 2002-08-07 08:36:31 +00:00
parent b8198905dc
commit 66e5a9eea1
2 changed files with 4 additions and 3 deletions

View File

@ -154,7 +154,6 @@ void InsetFormulaBase::metrics(BufferView * bv) const
if (bv)
view_ = bv->owner()->view();
MathMetricsInfo mi;
//mi.base.style = display() ? LM_ST_DISPLAY : LM_ST_TEXT;
mi.base.style = LM_ST_TEXT;
mi.base.font = font_;
mi.base.font.setColor(LColor::math);

View File

@ -158,7 +158,8 @@ char const * MathHullInset::standardFont() const
void MathHullInset::metrics(MathMetricsInfo & mi) const
{
MathFontSetChanger dummy(mi.base, standardFont());
MathFontSetChanger dummy1(mi.base, standardFont());
MathStyleChanger dummy2(mi.base, display() ? LM_ST_DISPLAY : LM_ST_TEXT);
// let the cells adjust themselves
MathGridInset::metrics(mi);
@ -192,7 +193,8 @@ void MathHullInset::metrics(MathMetricsInfo & mi) const
void MathHullInset::draw(MathPainterInfo & pi, int x, int y) const
{
MathFontSetChanger dummy(pi.base, standardFont());
MathFontSetChanger dummy1(pi.base, standardFont());
MathStyleChanger dummy2(pi.base, display() ? LM_ST_DISPLAY : LM_ST_TEXT);
MathGridInset::draw(pi, x + 1, y);
if (numberedType()) {