diff options
author | nyamatongwe <unknown> | 2010-08-05 20:39:11 +1000 |
---|---|---|
committer | nyamatongwe <unknown> | 2010-08-05 20:39:11 +1000 |
commit | d732daf053887c9df2758c8eda629193715258e3 (patch) | |
tree | fddffb291c09095c9ce49fe94fb22e526fe08ee1 | |
parent | c05d28e8677450fc62248724bf859a165fe9ea91 (diff) | |
download | scintilla-mirror-d732daf053887c9df2758c8eda629193715258e3.tar.gz |
Avoid drawing old pixbuf contents when scrolled far horizontally.
Caused by 16-bit integer underflow on coordinates, possibly in X.
-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)) { |