From 32faa2a27305faa5501234c5ab188c7255a1751e Mon Sep 17 00:00:00 2001 From: Richard Heck Date: Fri, 19 Mar 2010 01:46:13 +0000 Subject: [PATCH] Simplify a bit, after last commit. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33798 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/TextMetrics.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/TextMetrics.cpp b/src/TextMetrics.cpp index 6fca429b5a..8a18dd2956 100644 --- a/src/TextMetrics.cpp +++ b/src/TextMetrics.cpp @@ -322,16 +322,12 @@ bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos) const bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos, Font const & font) const { - if (!lyxrc.rtl_support) - return false; - - // no RTL boundary at paragraph start - if (pos == 0) - return false; - - // if the metrics have not been calculated, then we are not - // on screen and can safely ignore issues about boundaries. - if (!contains(pit)) + if (!lyxrc.rtl_support + // no RTL boundary at paragraph start + || pos == 0 + // if the metrics have not been calculated, then we are not + // on screen and can safely ignore issues about boundaries. + || !contains(pit)) return false; ParagraphMetrics & pm = par_metrics_[pit];