* src/Cursor.cpp (isRTL): simplify

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@18185 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-05-03 13:31:16 +00:00
parent 92dd086d77
commit a67a27e6de
2 changed files with 2 additions and 5 deletions

View 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());
}

View 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();
}