X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBidi.cpp;h=3b598a4fbd1087c3969a091889328077d4957123;hb=ecdeffb52b1dad2f56e0e4210d0a040e807e2caf;hp=a85f3eaddd26d4c64b035293e8abf9b448e953db;hpb=6b2232a29c682d8e62d1d2b963bb1a70bee4330b;p=lyx.git diff --git a/src/Bidi.cpp b/src/Bidi.cpp index a85f3eaddd..3b598a4fbd 100644 --- a/src/Bidi.cpp +++ b/src/Bidi.cpp @@ -57,10 +57,6 @@ void Bidi::computeTables(Paragraph const & par, Buffer const & buf, Row const & row) { same_direction_ = true; - if (!lyxrc.rtl_support) { - start_ = -1; - return; - } if (par.inInset().forceLTR()) { start_ = -1; @@ -108,6 +104,7 @@ void Bidi::computeTables(Paragraph const & par, pos_type const pos = (is_space && lpos + 1 <= end_ && !par.isLineSeparator(lpos + 1) && + !par.isEnvSeparator(lpos + 1) && !par.isNewline(lpos + 1)) ? lpos + 1 : lpos; @@ -191,7 +188,7 @@ void Bidi::computeTables(Paragraph const & par, bool Bidi::isBoundary(Buffer const & buf, Paragraph const & par, pos_type pos) const { - if (!lyxrc.rtl_support || pos == 0) + if (pos == 0) return false; if (!inRange(pos - 1)) { @@ -211,9 +208,6 @@ bool Bidi::isBoundary(Buffer const & buf, Paragraph const & par, bool Bidi::isBoundary(Buffer const & buf, Paragraph const & par, pos_type pos, Font const & font) const { - if (!lyxrc.rtl_support) - return false; // This is just for speedup - bool const rtl = font.isVisibleRightToLeft(); bool const rtl2 = inRange(pos) ? level(pos) % 2