]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_sizeinset.C
forward search in math insets. ugly. seems to work. don't ask why.
[lyx.git] / src / mathed / math_sizeinset.C
index 86edc28163e9fb01c0da549a52950121aa5bfefc..02f45c00afb7e25009b49ed99206325ec6d58904 100644 (file)
@@ -1,3 +1,5 @@
+#include <config.h>
+
 #ifdef __GNUG__
 #pragma implementation
 #endif
@@ -5,6 +7,7 @@
 #include "math_sizeinset.h"
 #include "math_parser.h"
 #include "math_mathmlstream.h"
+#include "math_streamstr.h"
 
 
 MathSizeInset::MathSizeInset(latexkeys const * l)
@@ -37,11 +40,11 @@ void MathSizeInset::metrics(MathMetricsInfo const & mi) const
 
 void MathSizeInset::write(WriteStream & os) const
 {
-       os << "{\\" << key_->name.c_str() << ' ' << cell(0) << '}';
+       os << "{\\" << key_->name << ' ' << cell(0) << '}';
 }
 
 
 void MathSizeInset::normalize(NormalStream & os) const
 {
-       os << "[" << key_->name.c_str() << ' ' << cell(0) << ']';
+       os << "[" << key_->name << ' ' << cell(0) << ']';
 }