]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_charinset.C
bug + spped fixes + small stuff
[lyx.git] / src / mathed / math_charinset.C
index b8aa90f030cec6ce639b90538a8e77c8ffdbc985..8578aa81486d7eec75be2960c4da77436dd69d2b 100644 (file)
 #include <config.h>
 
 #include "math_charinset.h"
-#include "dimension.h"
 #include "math_support.h"
 #include "math_mathmlstream.h"
+
+#include "debug.h"
+#include "dimension.h"
 #include "textpainter.h"
 
 using std::auto_ptr;
@@ -82,6 +84,7 @@ void MathCharInset::metrics(MetricsInfo & mi, Dimension & dim) const
                width_ += 2 * font_metrics::width(' ', font_);
        lyxerr << "MathCharInset::metrics: " << dim << endl;
 #endif
+       width_ = dim.wid;
 }
 
 
@@ -149,10 +152,3 @@ bool MathCharInset::isRelOp() const
 {
        return char_ == '=' || char_ == '<' || char_ == '>';
 }
-
-
-bool MathCharInset::match(MathInset const * p) const
-{
-       MathCharInset const * q = p->asCharInset();
-       return q && char_ == q->char_;
-}