]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathKern.C
Fix comment according to Enricos explanation
[lyx.git] / src / mathed / InsetMathKern.C
index 326f1e747c885f93186d5be6b26b7d805b0569fb..b4ad79d2cc22fdf7b519c1b3a0cda156e7054386 100644 (file)
 #include <config.h>
 
 #include "InsetMathKern.h"
-#include "MathMLStream.h"
+#include "MathStream.h"
 #include "MathStream.h"
 #include "MathSupport.h"
 #include "dimension.h"
 
+
+namespace lyx {
+
 using std::string;
 using std::auto_ptr;
 
@@ -29,8 +32,8 @@ InsetMathKern::InsetMathKern(LyXLength const & w)
 {}
 
 
-InsetMathKern::InsetMathKern(string const & s)
-       : wid_(s)
+InsetMathKern::InsetMathKern(docstring const & s)
+       : wid_(to_utf8(s))
 {}
 
 
@@ -61,11 +64,14 @@ void InsetMathKern::draw(PainterInfo &, int, int) const
 
 void InsetMathKern::write(WriteStream & os) const
 {
-       os << "\\kern" << wid_.asLatexString() << ' ';
+       os << "\\kern" << from_utf8(wid_.asLatexString()) << ' ';
 }
 
 
 void InsetMathKern::normalize(NormalStream & os) const
 {
-       os << "[kern " << wid_.asLatexString() << ']';
+       os << "[kern " << from_utf8(wid_.asLatexString()) << ']';
 }
+
+
+} // namespace lyx