diff --git a/src/mathed/formulabase.C b/src/mathed/formulabase.C index e7b46738dc..51dc9586fd 100644 --- a/src/mathed/formulabase.C +++ b/src/mathed/formulabase.C @@ -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); diff --git a/src/mathed/math_hullinset.C b/src/mathed/math_hullinset.C index 1bff0d5fcc..0114359321 100644 --- a/src/mathed/math_hullinset.C +++ b/src/mathed/math_hullinset.C @@ -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()) {