]> git.lyx.org Git - features.git/commitdiff
Fix warning and probably a bug.
authorAbdelrazak Younes <younes@lyx.org>
Mon, 11 Feb 2008 08:10:02 +0000 (08:10 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Mon, 11 Feb 2008 08:10:02 +0000 (08:10 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@22935 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index 28a9aaa5afb9a777108707afa59fc7ed46f976ae..837c0c8cdf65f41f80587ebda6ddd72406adc421 100644 (file)
@@ -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