]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMath.cpp
fix a crash when the inset containing the new word at cursor is deleted
[lyx.git] / src / mathed / InsetMath.cpp
index a1cc8d8049e940914e2d1510ab5050f228c97e6d..943ca902635bad29b77f9e5d6d04dd6c97a643c6 100644 (file)
@@ -130,6 +130,16 @@ void InsetMath::mathmlize(MathStream & os) const
 }
 
 
+void InsetMath::htmlize(HtmlStream & os) const
+{
+       os << "<!-- " << from_utf8(insetName(lyxCode())) << " -->";
+       os << MTag("span", "style='color: red;'");
+       NormalStream ns(os.os());
+       normalize(ns);
+       os << ETag("span");
+}
+
+
 HullType InsetMath::getType() const
 {
        return hullNone;