mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 21:21:32 +00:00
* 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:
parent
92dd086d77
commit
a67a27e6de
@ -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());
|
||||
}
|
||||
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user