]> git.lyx.org Git - lyx.git/blobdiff - src/Bidi.cpp
Also add support for URW Garamond math fonts (via newtx)
[lyx.git] / src / Bidi.cpp
index 4470e755f116c764cf8b1142deb053459b9bbc90..a85f3eaddd26d4c64b035293e8abf9b448e953db 100644 (file)
@@ -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;
        }