diff options
author | nyamatongwe <devnull@localhost> | 2010-08-05 20:39:11 +1000 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2010-08-05 20:39:11 +1000 |
commit | 9c48010126a393435bac7df9a03f5e56410c181e (patch) | |
tree | dde088b91000c7798cd3cd23ce951da19c4ab454 /src | |
parent | 1ed49e4e231a18c737f4f55406d469f94370d0a1 (diff) | |
download | scintilla-mirror-9c48010126a393435bac7df9a03f5e56410c181e.tar.gz |
Avoid drawing old pixbuf contents when scrolled far horizontally.
Caused by 16-bit integer underflow on coordinates, possibly in X.
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index be63ea839..50d666a60 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2425,6 +2425,8 @@ void Editor::DrawEOL(Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, Lin // Fill the remainder of the line rcSegment.left = xEol + xStart + virtualSpace + blobsWidth + vsDraw.aveCharWidth; + if (rcSegment.left < rcLine.left) + rcSegment.left = rcLine.left; rcSegment.right = rcLine.right; if (!hideSelection && vsDraw.selEOLFilled && eolInSelection && vsDraw.selbackset && (line < pdoc->LinesTotal() - 1) && (alpha == SC_ALPHA_NOALPHA)) { |