mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 12:32:26 +00:00
Bidi::computeTables(): avoid a Font instantiation for each char.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@26959 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
da640391fc
commit
be740f8543
13
src/Bidi.cpp
13
src/Bidi.cpp
@ -109,17 +109,18 @@ void Bidi::computeTables(Paragraph const & par,
|
||||
!par.isLineSeparator(lpos + 1) &&
|
||||
!par.isNewline(lpos + 1))
|
||||
? lpos + 1 : lpos;
|
||||
Font font = par.getFontSettings(bufparams, pos);
|
||||
if (pos != lpos && 0 < lpos && rtl0 && font.isRightToLeft() &&
|
||||
font.fontInfo().number() == FONT_ON &&
|
||||
|
||||
Font const * font = &(par.getFontSettings(bufparams, pos));
|
||||
if (pos != lpos && 0 < lpos && rtl0 && font->isRightToLeft() &&
|
||||
font->fontInfo().number() == FONT_ON &&
|
||||
par.getFontSettings(bufparams, lpos - 1).fontInfo().number()
|
||||
== FONT_ON) {
|
||||
font = par.getFontSettings(bufparams, lpos);
|
||||
font = &(par.getFontSettings(bufparams, lpos));
|
||||
is_space = false;
|
||||
}
|
||||
bool new_rtl = font->isVisibleRightToLeft();
|
||||
bool new_rtl0 = font->isRightToLeft();
|
||||
|
||||
bool new_rtl = font.isVisibleRightToLeft();
|
||||
bool new_rtl0 = font.isRightToLeft();
|
||||
int new_level;
|
||||
|
||||
if (lpos == body_pos - 1
|
||||
|
Loading…
Reference in New Issue
Block a user