]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSplit.cpp
fix off-by-two drawing error
[lyx.git] / src / mathed / InsetMathSplit.cpp
index 01b5bcfe68c018764b7a1a6b64e598135c7253f3..4420e9e5b56fdffdb645bbca81357cee08ed91ed 100644 (file)
@@ -74,7 +74,7 @@ bool InsetMathSplit::getStatus(Cursor & cur, FuncRequest const & cmd,
                if (s == "add-vline-left" || s == "add-vline-right") {
                        flag.message(bformat(
                                from_utf8(N_("Can't add vertical grid lines in '%1$s'")),       name_));
-                       flag.enabled(false);
+                       flag.setEnabled(false);
                        return true;
                }
                return InsetMathGrid::getStatus(cur, cmd, flag);
@@ -87,6 +87,7 @@ bool InsetMathSplit::getStatus(Cursor & cur, FuncRequest const & cmd,
 
 void InsetMathSplit::write(WriteStream & ws) const
 {
+       MathEnsurer ensurer(ws);
        if (ws.fragile())
                ws << "\\protect";
        ws << "\\begin{" << name_ << '}';