]> git.lyx.org Git - features.git/commitdiff
* src/Cursor.cpp (isRTL): simplify
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 May 2007 13:31:16 +0000 (13:31 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 3 May 2007 13:31:16 +0000 (13:31 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18185 a592a061-630c-0410-9148-cb99ea01b6c8

src/Cursor.cpp
src/DocIterator.cpp

index 9d2f03b906f58096bf7a25e98aa4789ee4ecae68..2589298f17018f648bbdbf4805566bb8263311fa 100644 (file)
@@ -1329,10 +1329,7 @@ void Cursor::fixIfBroken()
 
 bool Cursor::isRTL() const
 {
-       if (inMathed())
-               return innerParagraph().isRightToLeftPar(bv().buffer()->params());
-
-       return top().paragraph().isRightToLeftPar(bv().buffer()->params());
+       return innerParagraph().isRightToLeftPar(bv().buffer()->params());
 }
 
 
index f6b3b87293eed7509a020c3ad955fa477dc0d3a9..cf84b1b1c7cff0657ec2da7ac22322748e3d347a 100644 (file)
@@ -191,7 +191,7 @@ Paragraph const & DocIterator::innerParagraph() const
                        return slices_[i].paragraph();
 
        // This case is in principe not possible. We _must_
-       // we inside a Paragraph.
+       // be inside a Paragraph.
        BOOST_ASSERT(false);
        return paragraph();
 }