mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-11 05:33:33 +00:00
Simplify a bit, after last commit.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@33798 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
4d0d67872e
commit
32faa2a273
@ -322,16 +322,12 @@ bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos) const
|
|||||||
bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos,
|
bool TextMetrics::isRTLBoundary(pit_type pit, pos_type pos,
|
||||||
Font const & font) const
|
Font const & font) const
|
||||||
{
|
{
|
||||||
if (!lyxrc.rtl_support)
|
if (!lyxrc.rtl_support
|
||||||
return false;
|
// no RTL boundary at paragraph start
|
||||||
|
|| pos == 0
|
||||||
// no RTL boundary at paragraph start
|
// if the metrics have not been calculated, then we are not
|
||||||
if (pos == 0)
|
// on screen and can safely ignore issues about boundaries.
|
||||||
return false;
|
|| !contains(pit))
|
||||||
|
|
||||||
// if the metrics have not been calculated, then we are not
|
|
||||||
// on screen and can safely ignore issues about boundaries.
|
|
||||||
if (!contains(pit))
|
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
ParagraphMetrics & pm = par_metrics_[pit];
|
ParagraphMetrics & pm = par_metrics_[pit];
|
||||||
|
Loading…
Reference in New Issue
Block a user