commit eb9250ff2c0036988a132c6417d5db274c9d6cf2
Author: Jean-Marc Lasgouttes <[email protected]>
Date:   Fri Oct 9 15:48:59 2015 +0200

    Small code cleanup

diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index 6c8844c..fe90f98 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -957,9 +957,8 @@ bool Cursor::posVisToNewRow(bool movingLeft)
 
        // Inside a table, determining whether to move to the next or
        // previous row should be done based on the table's direction.
-       int s = depth() - 1;
-       if (s >= 1 && (*this)[s].inset().asInsetTabular()) {
-               par_is_LTR = 
!(*this)[s].inset().asInsetTabular()->isRightToLeft(*this);
+       if (inset().asInsetTabular()) {
+               par_is_LTR = !inset().asInsetTabular()->isRightToLeft(*this);
                LYXERR(Debug::RTL, "Inside table! par_is_LTR=" << (par_is_LTR ? 
1 : 0));
        }
 

Reply via email to