]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_symbolinset.C
revert Buffer LyxText->InsetText commit
[lyx.git] / src / mathed / math_symbolinset.C
index b7cb9d8c40c81b470c582e1eabbc7170e0de1cf7..8a4359cff5fc60abd1bcd79ef12b7c7717271ac3 100644 (file)
@@ -65,10 +65,10 @@ void MathSymbolInset::metrics(MetricsInfo & mi, Dimension & dim) const
        // correct height for broken cmex and wasy font
 #if defined(__APPLE__) && defined(__GNUC__)
        if (sym_->inset == "cmex") {
-               h_ = 4 * dim_.des / 5;
-               dim_.asc += 0*h_;
-               dim_.des -= h_;
-               h_ = dim_.asc;
+               h_ = 4 * dim.des / 5;
+               dim.asc += 0*h_;
+               dim.des -= h_;
+               h_ = dim.asc;
        } else if (sym_->inset == "wasy") {
                h_ = 4 * dim.des / 5;
                dim.asc += h_;
@@ -91,6 +91,8 @@ void MathSymbolInset::metrics(MetricsInfo & mi, Dimension & dim) const
        if (mi.base.style == LM_ST_DISPLAY)
                if (sym_->inset == "cmex" || sym_->extra == "funclim")
                        scriptable_ = true;
+
+       width_ = dim.wid;
 }
 
 
@@ -182,13 +184,6 @@ char const * MathMLtype(string const & s)
 }
 
 
-bool MathSymbolInset::match(MathAtom const & at) const
-{
-       MathSymbolInset const * q = at->asSymbolInset();
-       return q && name() == q->name();
-}
-
-
 void MathSymbolInset::mathmlize(MathMLStream & os) const
 {
        char const * type = MathMLtype(sym_->extra);