From d732daf053887c9df2758c8eda629193715258e3 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Thu, 5 Aug 2010 20:39:11 +1000 Subject: Avoid drawing old pixbuf contents when scrolled far horizontally. Caused by 16-bit integer underflow on coordinates, possibly in X. --- src/Editor.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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)) { -- cgit v1.2.3