From 4bc9498c7dc46f9738137fadfcc0bd098d5cf73c Mon Sep 17 00:00:00 2001 From: Abdelrazak Younes Date: Mon, 11 Feb 2008 08:10:02 +0000 Subject: [PATCH] Fix warning and probably a bug. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22935 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/InsetTabular.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/insets/InsetTabular.cpp b/src/insets/InsetTabular.cpp index 28a9aaa5af..837c0c8cdf 100644 --- a/src/insets/InsetTabular.cpp +++ b/src/insets/InsetTabular.cpp @@ -3151,13 +3151,13 @@ docstring const InsetTabular::editMessage() const } -void InsetTabular::edit(Cursor & cur, bool, EntryDirectionType) +void InsetTabular::edit(Cursor & cur, bool, EntryDirectionType direction) { //lyxerr << "InsetTabular::edit: " << this << endl; cur.finishUndo(); cur.selection() = false; cur.push(*this); - if (left) { + if (direction == ENTER_FROM_LEFT) { if (isRightToLeft(cur)) cur.idx() = tabular.getLastCellInRow(0); else -- 2.39.2