]> git.lyx.org Git - lyx.git/blobdiff - src/Bidi.cpp
* do not lookup the same macro all the time
[lyx.git] / src / Bidi.cpp
index 8c3a81b208aae612dc72bc2355dffb76824d1f0d..df1f7495d6c11751b167d2cc0ceaec360e577d89 100644 (file)
@@ -224,4 +224,10 @@ bool reverseDirectionNeeded(Cursor const & cur)
 }
 
 
+bool isWithinRtlParagraph(Cursor const & cur)
+{
+       return cur.innerParagraph().isRightToLeftPar(
+               cur.bv().buffer()->params());
+}
+
 } // namespace lyx