Undo previous commit, as it caused a graphical glitch when a paragraph spanned multiple lines
This commit is contained in:
parent
cfe91411d7
commit
7333ddc9d8
1 changed files with 1 additions and 4 deletions
|
|
@ -482,10 +482,7 @@ void Editor::paint(SkCanvas* c, PaintOpts options) {
|
||||||
{
|
{
|
||||||
assert(pos.fParagraphIndex < fLines.size());
|
assert(pos.fParagraphIndex < fLines.size());
|
||||||
const TextParagraph& l = fLines[pos.fParagraphIndex];
|
const TextParagraph& l = fLines[pos.fParagraphIndex];
|
||||||
SkRect selectionRect = offset(l.fCursorPos[pos.fTextByteIndex], l.fOrigin);
|
c->drawRect(offset(l.fCursorPos[pos.fTextByteIndex], l.fOrigin), selection);
|
||||||
if(pos.fParagraphIndex < fLines.size() - 1)
|
|
||||||
selectionRect.fBottom = fLines[pos.fParagraphIndex + 1].fOrigin.y();
|
|
||||||
c->drawRect(selectionRect, selection);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if(fLines.size() > 0)
|
if(fLines.size() > 0)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue