]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathXYArrow.cpp
Fix overflow of inset over text (see #9224)
[lyx.git] / src / mathed / InsetMathXYArrow.cpp
index b0e20499036ed2f9767b12631a7d6ba0b8763ce5..0cb525c15a0e28b69842dff8dea6d42ec604b850 100644 (file)
@@ -142,9 +142,9 @@ void InsetMathXYArrow::write(WriteStream & os) const
 {
        MathEnsurer ensurer(os);
        os << "\\ar";
-       if (cell(0).size())
+       if (!cell(0).empty())
                os << '[' << cell(0) << ']';
-       if (cell(1).size())
+       if (!cell(1).empty())
                os << (up_ ? '^' : '_') << '{' << cell(1) << '}';
        os << " ";
 }
@@ -158,4 +158,15 @@ void InsetMathXYArrow::normalize(NormalStream & os) const
 }
 
 
+void InsetMathXYArrow::mathmlize(MathStream &) const
+{
+       throw MathExportException();
+}
+
+
+void InsetMathXYArrow::htmlize(HtmlStream &) const 
+{
+       throw MathExportException(); 
+}
+
 } // namespace lyx