mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-23 05:25:26 +00:00
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25931 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
8085efd83a
commit
2d9def6577
@ -312,12 +312,12 @@ void RowPainter::paintChars(pos_type & vpos, FontInfo const & font,
|
||||
}
|
||||
|
||||
FontInfo copy = font;
|
||||
if (selection)
|
||||
copy.setColor(Color_selectiontext);
|
||||
else if (change_type == Change::DELETED)
|
||||
if (change_type == Change::DELETED)
|
||||
copy.setColor(Color_deletedtext);
|
||||
else if (change_type == Change::INSERTED)
|
||||
copy.setColor(Color_addedtext);
|
||||
else if (selection)
|
||||
copy.setColor(Color_selectiontext);
|
||||
|
||||
x_ += pi_.pain.text(int(x_), yo_, s, copy);
|
||||
}
|
||||
@ -338,6 +338,13 @@ void RowPainter::paintForeignMark(double orig_x, Language const * lang,
|
||||
}
|
||||
|
||||
|
||||
void RowPainter::paintMisspelledMark(double orig_x, int desc)
|
||||
{
|
||||
int const y = yo_ + desc;
|
||||
pi_.pain.wavyHorizontalLine(int(orig_x), y, int(x_) - int(orig_x), Color_red);
|
||||
}
|
||||
|
||||
|
||||
void RowPainter::paintFromPos(pos_type & vpos)
|
||||
{
|
||||
pos_type const pos = bidi_.vis2log(vpos);
|
||||
@ -365,6 +372,8 @@ void RowPainter::paintFromPos(pos_type & vpos)
|
||||
}
|
||||
|
||||
paintForeignMark(orig_x, orig_font.language());
|
||||
if (orig_font.isMisspelled())
|
||||
paintMisspelledMark(orig_x, 3);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user