X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBidi.cpp;h=a85f3eaddd26d4c64b035293e8abf9b448e953db;hb=4db3e641ed6765e005343010cb90ee8af26f8f99;hp=4470e755f116c764cf8b1142deb053459b9bbc90;hpb=be740f85439e4f2aa5e74173a1fc31ca32c0c653;p=lyx.git diff --git a/src/Bidi.cpp b/src/Bidi.cpp index 4470e755f1..a85f3eaddd 100644 --- a/src/Bidi.cpp +++ b/src/Bidi.cpp @@ -46,6 +46,7 @@ bool Bidi::inRange(pos_type pos) const return start_ == -1 || (start_ <= pos && pos <= end_); } + bool Bidi::same_direction() const { return same_direction_; @@ -61,7 +62,7 @@ void Bidi::computeTables(Paragraph const & par, return; } - if (par.ownerCode() == ERT_CODE || par.ownerCode() == LISTINGS_CODE) { + if (par.inInset().forceLTR()) { start_ = -1; return; }