Otherwise the variable might be used incorrectly as in [
0a137e31/lyxgit].
// If lastrow is false, we don't need to compute
// the value of rtl.
// If lastrow is false, we don't need to compute
// the value of rtl.
- bool const rtl = lastrow ? text_->isRTL(par) : false;
+ bool const rtl_on_lastrow = lastrow ? text_->isRTL(par) : false;
// if the first character is a separator, and we are in RTL
// text, this character will not be painted on screen
// if the first character is a separator, and we are in RTL
// text, this character will not be painted on screen
boundary = false;
if (lastrow &&
boundary = false;
if (lastrow &&
- ((rtl && left_side && vc == row.pos() && x < tmpx - 5) ||
- (!rtl && !left_side && vc == end && x > tmpx + 5))) {
+ ((rtl_on_lastrow && left_side && vc == row.pos() && x < tmpx - 5) ||
+ (!rtl_on_lastrow && !left_side && vc == end && x > tmpx + 5))) {
if (!par.isNewline(end - 1))
c = end;
} else if (vc == row.pos()) {
if (!par.isNewline(end - 1))
c = end;
} else if (vc == row.pos()) {