]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSubstack.cpp
add busy.gif to resources (in line with cmake)
[lyx.git] / src / mathed / InsetMathSubstack.cpp
index 6abb883fc932f3d3f46f3cc761dc2242b3384ded..fccdf7b3c3aacedeaeaad18141d0819d69159e02 100644 (file)
@@ -62,7 +62,7 @@ void InsetMathSubstack::draw(PainterInfo & pi, int x, int y) const
 bool InsetMathSubstack::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;
@@ -78,8 +78,18 @@ bool InsetMathSubstack::getStatus(Cursor & cur, FuncRequest const & cmd,
                        flag.setEnabled(false);
                        return true;
                }
+               // in contrary to \subaray, the columns in \substack
+               // are always centered and this cannot be changed
+               if (s == "align-left" || s == "align-right") {
+                       flag.message(bformat(
+                               from_utf8(N_("Can't change horizontal alignment in '%1$s'")),
+                               from_utf8(name)));
+                       flag.setEnabled(false);
+                       return true;
+               }
                break;
        }
+
        default:
                break;
        }