]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSplit.cpp
Attempt to fix #8137 (arrived at r40862).
[lyx.git] / src / mathed / InsetMathSplit.cpp
index 673d6110001df020c7965c8cf356733da0c4b182..240126d122e2d774f4531ff340baa1ccd64cc499 100644 (file)
@@ -69,7 +69,7 @@ void InsetMathSplit::draw(PainterInfo & pi, int x, int y) const
 bool InsetMathSplit::getStatus(Cursor & cur, FuncRequest const & cmd,
                FuncStatus & flag) const
 {
-       switch (cmd.action) {
+       switch (cmd.action()) {
        case LFUN_INSET_MODIFY: {
                istringstream is(to_utf8(cmd.argument()));
                string s;
@@ -131,11 +131,24 @@ void InsetMathSplit::mathmlize(MathStream & ms) const
 }
 
 
+void InsetMathSplit::htmlize(HtmlStream & ms) const
+{
+       // split, gathered, aligned, alignedat
+       // At the moment, those seem to display just fine without any
+       // special treatment.
+       // FIXME
+       // lgathered and rgathered could use the proper alignment.
+       InsetMathGrid::htmlize(ms);
+}
+
+
 void InsetMathSplit::validate(LaTeXFeatures & features) const
 {
        if (name_ == "split" || name_ == "gathered" || name_ == "aligned" ||
            name_ == "alignedat")
                features.require("amsmath");
+       else if (name_ == "lgathered" || name_ == "rgathered")
+               features.require("mathtools");
        InsetMathGrid::validate(features);
 }