diff options
| author | nyamatongwe <unknown> | 2011-09-09 23:39:47 +1000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-09-09 23:39:47 +1000 | 
| commit | 2598b5e38c3e22e4264dc6d89fefc5dd10b45476 (patch) | |
| tree | 1a01ca31811e4144314e97ca3fbe0baf6738a9a8 /src | |
| parent | c4e2263b026a0b5aa67c421b767c3ebbabda654f (diff) | |
| download | scintilla-mirror-2598b5e38c3e22e4264dc6d89fefc5dd10b45476.tar.gz | |
Simplify some expressions which seem to cause failures.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/src/Editor.cxx b/src/Editor.cxx index 1257ac4b0..9e84132f2 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2588,7 +2588,7 @@ void Editor::DrawEOL(Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, Lin  	// Draw the eol-is-selected rectangle  	rcSegment.left = xEol + xStart + virtualSpace + blobsWidth; -	rcSegment.right = xEol + xStart + virtualSpace + blobsWidth + vsDraw.aveCharWidth; +	rcSegment.right = rcSegment.left + vsDraw.aveCharWidth;  	if (!hideSelection && eolInSelection && vsDraw.selbackset && (line < pdoc->LinesTotal() - 1) && (alpha == SC_ALPHA_NOALPHA)) {  		surface->FillRectangle(rcSegment, SelectionBackground(vsDraw, eolInSelection == 1)); @@ -2608,7 +2608,7 @@ void Editor::DrawEOL(Surface *surface, ViewStyle &vsDraw, PRectangle rcLine, Lin  	}  	// Fill the remainder of the line -	rcSegment.left = xEol + xStart + virtualSpace + blobsWidth + vsDraw.aveCharWidth; +	rcSegment.left = rcSegment.right;  	if (rcSegment.left < rcLine.left)  		rcSegment.left = rcLine.left;  	rcSegment.right = rcLine.right; | 
