mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-23 02:14:50 +00:00
simplify
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33688 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
93830fd28d
commit
684def2036
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user