X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2FInsetMathComment.cpp;h=ea502d1aa2ef1fd7a7ab504c3799f5dc49cc489e;hb=cdc847fd304019a19425a0d5d9d42a556a937097;hp=ec6d7cccd43cc88380881f4a5265b84fb9e1dae8;hpb=5aff1283543bbdf34106dcc7ec518e63edecbfe9;p=lyx.git diff --git a/src/mathed/InsetMathComment.cpp b/src/mathed/InsetMathComment.cpp index ec6d7cccd4..ea502d1aa2 100644 --- a/src/mathed/InsetMathComment.cpp +++ b/src/mathed/InsetMathComment.cpp @@ -26,6 +26,13 @@ InsetMathComment::InsetMathComment(Buffer * buf) {} +InsetMathComment::InsetMathComment(MathData const & ar) + : InsetMathNest(const_cast(ar.buffer()), 1) +{ + cell(0) = ar; +} + + InsetMathComment::InsetMathComment(Buffer * buf, docstring const & str) : InsetMathNest(buf, 1) { @@ -43,14 +50,12 @@ Inset * InsetMathComment::clone() const void InsetMathComment::metrics(MetricsInfo & mi, Dimension & dim) const { cell(0).metrics(mi, dim); - metricsMarkers(dim); } void InsetMathComment::draw(PainterInfo & pi, int x, int y) const { - cell(0).draw(pi, x + 1, y); - drawMarkers(pi, x, y); + cell(0).draw(pi, x, y); } @@ -80,13 +85,13 @@ void InsetMathComment::maple(MapleStream & os) const void InsetMathComment::mathmlize(MathStream & os) const { - os << MTag("comment") << cell(0) << cell(1) << ETag("comment"); + os << MTag("comment") << cell(0) << ETag("comment"); } void InsetMathComment::htmlize(HtmlStream & os) const { - os << ""; + os << ""; }