]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathXYArrow.C
This commit fixes a crash when accessing a math inset. This was due to an invalid...
[lyx.git] / src / mathed / InsetMathXYArrow.C
index 205b9265ee48b9d76cf6b900accb4461be4476c5..5cd4c86172e663cdcbdc82d8e0e04a5a1789b87e 100644 (file)
@@ -88,7 +88,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, lyx::from_ascii("target: "));
                width_   = w + max(cell(0).width(), cell(1).width());
                ascent_  = cell(0).ascent();
                descent_ = cell(0).descent() + cell(1).height() + 10;