From eb9250ff2c0036988a132c6417d5db274c9d6cf2 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 9 Oct 2015 15:48:59 +0200 Subject: [PATCH] Small code cleanup --- src/Cursor.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Cursor.cpp b/src/Cursor.cpp index 6c8844ce31..fe90f98deb 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)); } -- 2.39.5