]> git.lyx.org Git - features.git/commitdiff
* InsetTabular.cpp cosmetics
authorVincent van Ravesteijn <vfr@lyx.org>
Thu, 5 Feb 2009 22:14:57 +0000 (22:14 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Thu, 5 Feb 2009 22:14:57 +0000 (22:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28369 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetTabular.cpp

index ff7e46a52eda670aabecbcb973d9f3cb86c8bd24..6e871a6098094fd4a1cdb2c8145d73b82d4d7264 100644 (file)
@@ -3391,18 +3391,14 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
                // LEFT or RIGHT commands --- the interpretation will depend on the 
                // table's direction.
                else {
-                       bool right = (cmd.action == LFUN_CHAR_RIGHT
-                                                       || cmd.action == LFUN_CHAR_RIGHT_SELECT);
-                       next_cell = (isRightToLeft(cur) != right);
+                       bool const right = cmd.action == LFUN_CHAR_RIGHT
+                               || cmd.action == LFUN_CHAR_RIGHT_SELECT;
+                       next_cell = isRightToLeft(cur) != right;
                        
-                       if (lyxrc.visual_cursor) {
+                       if (lyxrc.visual_cursor)
                                entry_from = right ? ENTRY_DIRECTION_LEFT:ENTRY_DIRECTION_RIGHT;
-                       }
 
-                       if (right)
-                               finish_lfun = LFUN_FINISHED_RIGHT;
-                       else
-                               finish_lfun = LFUN_FINISHED_LEFT;
+                       finish_lfun = right ? LFUN_FINISHED_RIGHT : LFUN_FINISHED_LEFT;
                }
 
                // if we don't have a multicell selection...