]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathDelim.cpp
Fix a crash with uninitialized buffer member of MathData
[lyx.git] / src / mathed / InsetMathDelim.cpp
index 809e8a0c13ef53160ee0ac28cbd0c51466af680b..1989d48dc2d9c6d840f810ba0a4123b80834ddb6 100644 (file)
@@ -93,7 +93,7 @@ void InsetMathDelim::metrics(MetricsInfo & mi, Dimension & dim) const
 {
        Changer dummy = mi.base.changeEnsureMath();
        Dimension dim0;
-       cell(0).metrics(mi, dim0);
+       cell(0).metrics(mi, dim0, false);
        Dimension t = theFontMetrics(mi.base.font).dimension('I');
        int h0 = (t.asc + t.des) / 2;
        int a0 = max(dim0.asc, t.asc)   - h0;
@@ -182,11 +182,15 @@ void InsetMathDelim::mathematica(MathematicaStream & os) const
 void InsetMathDelim::mathmlize(MathStream & os) const
 {
        os << "<mo form='prefix' fence='true' stretchy='true' symmetric='true'>"
+          << "<mrow>"
           << convertDelimToXMLEscape(left_)
+          << "</mrow>"
           << "</mo>\n"
           << cell(0)
           << "\n<mo form='postfix' fence='true' stretchy='true' symmetric='true'>"
+          << "<mrow>"
           << convertDelimToXMLEscape(right_)
+          << "</mrow>"
           << "</mo>\n";
 }