X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathXYArrow.cpp;h=80aeb7276b5435d9a9119ef808992280b4be32dd;hb=8cd80803220e02f7a9148f11b99f4f3aeb0d3f38;hp=b0e20499036ed2f9767b12631a7d6ba0b8763ce5;hpb=f1cba8ff64b369792fd49f5ddf90e8126ab476ac;p=lyx.git diff --git a/src/mathed/InsetMathXYArrow.cpp b/src/mathed/InsetMathXYArrow.cpp index b0e2049903..80aeb7276b 100644 --- a/src/mathed/InsetMathXYArrow.cpp +++ b/src/mathed/InsetMathXYArrow.cpp @@ -22,7 +22,7 @@ namespace lyx { InsetMathXYArrow::InsetMathXYArrow() - : InsetMathNest(2) + : InsetMathNest(2), up_(false), target_(0) {} @@ -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