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;
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;
}