}
-void RowPainter::paintSeparator(double width, Font const & font)
-{
- pi_.pain.textDecoration(font.fontInfo(), int(x_), yo_, int(width));
- x_ += width;
-}
-
-
void RowPainter::paintForeignMark(double orig_x, Language const * lang, int desc) const
{
if (!lyxrc.mark_foreign_language)
FontMetrics const & fm = theFontMetrics(e.font);
int x1 = fm.pos2x(e.str, range.first - e.pos,
- e.font.isVisibleRightToLeft(), e.extra);
+ e.isRTL(), e.extra);
int x2 = fm.pos2x(e.str, min(range.last - e.pos + 1,
pos_type(e.str.length())),
- e.font.isVisibleRightToLeft(), e.extra);
+ e.isRTL(), e.extra);
if (x1 > x2)
swap(x1, x2);
case Row::VIRTUAL:
paintStringAndSel(e);
- // Paint the spelling mark if needed.
- if (lyxrc.spellcheck_continuously && pi_.do_spellcheck
- && par_.isMisspelled(e.pos)) {
+ // Paint the spelling marks if enabled.
+ if (lyxrc.spellcheck_continuously && pi_.do_spellcheck)
paintMisspelledMark(orig_x, e);
- }
break;
case Row::INSET: {
// If outer row has changed, nested insets are repaint completely.
foreign_descent = e.dim.descent();
}
break;
- case Row::SEPARATOR:
case Row::SPACE:
- paintSeparator(e.full_width(), e.font);
+ pi_.pain.textDecoration(e.font.fontInfo(), int(x_), yo_, int(e.full_width()));
+ x_ += e.full_width();
}
// The line that indicates word in a different language