mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
ide: TextDiffCtrl hl fix
git-svn-id: svn://ultimatepp.org/upp/trunk@7638 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
b8ce796eb3
commit
1e10fc04bc
1 changed files with 2 additions and 1 deletions
|
|
@ -251,13 +251,14 @@ void TextCompareCtrl::Paint(Draw& draw)
|
|||
if(!sel)
|
||||
WhenHighlight(hln, ln);
|
||||
int x = 0;
|
||||
int a = StdFont().GetAscent();
|
||||
for(int i = 0; i < hln.GetCount(); i++) {
|
||||
Font fnt = font;
|
||||
LineEdit::Highlight& h = hln[i];
|
||||
fnt.Bold(h.font.IsBold());
|
||||
fnt.Italic(h.font.IsItalic());
|
||||
fnt.Underline(h.font.IsUnderline());
|
||||
draw.DrawText(number_width - offset.cx + x, y, &h.chr, fnt, h.ink, 1);
|
||||
draw.DrawText(number_width - offset.cx + x, y + a - fnt.GetAscent(), &h.chr, fnt, h.ink, 1);
|
||||
x += font[h.chr];
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue