]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_stringinset.C
small up/down tweaking
[lyx.git] / src / mathed / math_stringinset.C
index 078ec542cb7bb9482b5521314b2f375a70974cc6..e28556edbc643f961b614ae68fe5c6e64c455a9d 100644 (file)
@@ -7,10 +7,7 @@
 #include "math_stringinset.h"
 #include "math_mathmlstream.h"
 #include "math_streamstr.h"
-#include "LColor.h"
 #include "math_support.h"
-#include "math_parser.h"
-#include "LaTeXFeatures.h"
 #include "debug.h"
 
 
@@ -27,7 +24,7 @@ MathInset * MathStringInset::clone() const
 
 void MathStringInset::metrics(MathMetricsInfo & mi) const
 {
-       mathed_string_dim(mi.base.font, str_, ascent_, descent_, width_);
+       mathed_string_dim(mi.base.font, str_, dim_);
 }
 
 
@@ -40,7 +37,7 @@ void MathStringInset::draw(MathPainterInfo & pi, int x, int y) const
 
 void MathStringInset::normalize(NormalStream & os) const
 {
-       os << "[string " << str_ << ' ' << "mathalpha" << "]";
+       os << "[string " << str_ << ' ' << "mathalpha" << ']';
 }