]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_symbolinset.C
Compile fix gcc 2.95 + stlport
[lyx.git] / src / mathed / math_symbolinset.C
index 2bed3ca1da0c1e68842e196379ab87cba78deda5..8a4359cff5fc60abd1bcd79ef12b7c7717271ac3 100644 (file)
@@ -21,6 +21,7 @@
 #include "debug.h"
 
 
+using std::string;
 using std::auto_ptr;
 
 
@@ -64,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_;
@@ -90,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;
 }
 
 
@@ -181,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);