git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33688 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Edwin Leuven 2010-03-09 19:21:32 +00:00
parent 93830fd28d
commit 684def2036

View File

@ -3974,17 +3974,11 @@ bool InsetTabular::getStatus(Cursor & cur, FuncRequest const & cmd,
istringstream is(to_utf8(cmd.argument()));
string s;
is >> s;
if (insetCode(s) != TABULAR_CODE) {
if (&cur.inset() != this || insetCode(s) != TABULAR_CODE) {
status.clear();
status.setEnabled(false);
break;
}
if (&cur.inset() != this) {
// we need the cursor to be _inside_ the table.
status.setEnabled(false);
status.message(from_utf8(N_("Cursor not in table")));
return true;
}
is >> s;
// FIXME: We only check for the very first argument...
int action = Tabular::LAST_ACTION;