]> git.lyx.org Git - features.git/blobdiff - src/TextMetrics.cpp
New helper method Row::Element::isRTL()
[features.git] / src / TextMetrics.cpp
index b394169fac01ce13c02a67bd72cfaa5836f47af2..fc5e1c5ac5ec0e29856bcfcf7738150487749f03 100644 (file)
@@ -1103,7 +1103,7 @@ pos_type TextMetrics::getPosNearX(Row const & row, int & x,
                 */
                else if (pos == cit->endpos
                         && cit + 1 != row.end()
-                        && cit->font.isVisibleRightToLeft() != (cit + 1)->font.isVisibleRightToLeft())
+                        && cit->isRTL() != (cit + 1)->isRTL())
                        boundary = true;
        }