]> git.lyx.org Git - features.git/commitdiff
Style, I guess.
authorRichard Heck <rgheck@comcast.net>
Fri, 26 Mar 2010 17:00:07 +0000 (17:00 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 26 Mar 2010 17:00:07 +0000 (17:00 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33876 a592a061-630c-0410-9148-cb99ea01b6c8

src/TextMetrics.cpp

index 19a71ffbb99154ad41ed597c0ab4431929aaf0b5..1aef414b7c7f983a9b77f101626522cf1c88c252 100644 (file)
@@ -306,11 +306,8 @@ bool TextMetrics::isRTL(CursorSlice const & sl, bool boundary) const
 
 bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos) const
 {
-       if (!lyxrc.rtl_support)
-               return false;
-
        // no RTL boundary at paragraph start
-       if (pos == 0)
+       if (!lyxrc.rtl_support || pos == 0)
                return false;
 
        Font const & left_font = displayFont(pit, pos - 1);