From 684def2036c7aa81775a650c401ba99672e7a764 Mon Sep 17 00:00:00 2001 From: Edwin Leuven Date: Tue, 9 Mar 2010 19:21:32 +0000 Subject: [PATCH] simplify git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33688 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 81044814c1..a542b8f4b6 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -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;