optimization: avoid checking fonts if lyxrc.rtl_support is false

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_5_X@20124 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Alfredo Braunstein 2007-09-07 10:31:32 +00:00
parent 99dbbcfa3f
commit 80af79b747

View File

@ -294,7 +294,7 @@ bool Text::isRTL(Buffer const & buffer, Paragraph const & par) const
bool Text::isRTL(Buffer const & buffer, CursorSlice const & sl, bool boundary) const
{
if (!lyxrc.rtl_support && !sl.text())
if (!lyxrc.rtl_support || !sl.text())
return false;
int correction = 0;