]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathXYArrow.C
Fix comment according to Enricos explanation
[lyx.git] / src / mathed / InsetMathXYArrow.C
index 205b9265ee48b9d76cf6b900accb4461be4476c5..890d7cc792647f55d116528b470f6dde03c7e08d 100644 (file)
 #include <config.h>
 
 #include "InsetMathXYArrow.h"
-#include "MathMLStream.h"
 #include "MathStream.h"
 #include "MathSupport.h"
 #include "frontends/Painter.h"
 #include "debug.h"
 
 
+namespace lyx {
+
+
 using std::max;
 
 
@@ -88,7 +90,7 @@ void InsetMathXYArrow::metrics(MetricsInfo & mi) const
        target_ = mi.inset ? mi.inset->asXYMatrixInset() : 0;
 
        if (editing()) {
-               int w    = mathed_string_width(mi.base.font, "target: ");
+               int w    = mathed_string_width(mi.base.font, from_ascii("target: "));
                width_   = w + max(cell(0).width(), cell(1).width());
                ascent_  = cell(0).ascent();
                descent_ = cell(0).descent() + cell(1).height() + 10;
@@ -155,3 +157,6 @@ void InsetMathXYArrow::normalize(NormalStream & os) const
        InsetMathNest::normalize(os);
        os << ']';
 }
+
+
+} // namespace lyx