mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-11 03:03:06 +00:00
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:
parent
b8198905dc
commit
66e5a9eea1
@ -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);
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user