Fix bug #6041: "tabular-feature align-" in a math-matrix.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30363 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2009-07-05 00:24:17 +00:00
parent db1a03d598
commit 0b219d2541

View File

@ -1415,17 +1415,16 @@ bool InsetMathGrid::getStatus(Cursor & cur, FuncRequest const & cmd,
|| (s == "valign-top" && va == 't')
|| (s == "valign-bottom" && va == 'b')
|| (s == "valign-middle" && va == 'm'));
}
if (s == "append-row" || s == "delete-row" ||
} else if (s == "append-row" || s == "delete-row" ||
s == "copy-row" || s == "swap-row" ||
s == "add-hline-above" || s == "add-hline-below" ||
s == "delete-hline-above" || s == "delete-hline-below" ||
s == "append-column" || s == "delete-column" ||
s == "copy-column" || s == "swap-column" ||
s == "add-vline-left" || s == "add-vline-right" ||
s == "delete-vline-left" || s == "delete-vline-right")
s == "delete-vline-left" || s == "delete-vline-right") {
status.setEnabled(true);
else {
} else {
status.setEnabled(false);
status.message(bformat(
from_utf8(N_("Unknown tabular feature '%1$s'")), lyx::from_ascii(s)));