]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathCases.cpp
Only set buffer if it is not null.
[lyx.git] / src / mathed / InsetMathCases.cpp
index 0a5fa332b1ab241b7c8a278d0534755f1c335e65..09ad0f8fa8273c8610aa49ccfac99db924fab500 100644 (file)
@@ -32,8 +32,8 @@ using namespace lyx::support;
 namespace lyx {
 
 
-InsetMathCases::InsetMathCases(Buffer * buf, row_type n)
-       : InsetMathGrid(buf, 2, n, 'c', from_ascii("ll"))
+InsetMathCases::InsetMathCases(Buffer * buf, row_type rows)
+       : InsetMathGrid(buf, 2, rows, 'c', from_ascii("ll"))
 {}
 
 
@@ -145,7 +145,10 @@ void InsetMathCases::maple(MapleStream & os) const
 
 void InsetMathCases::mathmlize(MathStream & ms) const
 {
-       ms << "<mo form='prefix' fence='true' stretchy='true' symmetric='true'>{</mo>";
+       ms << "<" << from_ascii(ms.namespacedTag("mo"))
+          << " form='prefix' fence='true' stretchy='true' symmetric='true'>"
+          << "{"
+          << "</" << from_ascii(ms.namespacedTag("mo")) << ">";
        InsetMathGrid::mathmlize(ms);
 }