aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-09-09 23:39:47 +1000
committernyamatongwe <devnull@localhost>2011-09-09 23:39:47 +1000
commit805ac5c8cfe689a56c762dd0f1fd7f83c9434e6d (patch)
tree930776cb721af7ad7150e94d0896cb0a7d6a4368
parentec3e2ca261c8a98fd0786c151a737ad12ed637f4 (diff)
downloadscintilla-mirror-805ac5c8cfe689a56c762dd0f1fd7f83c9434e6d.tar.gz
Simplify some expressions which seem to cause failures.
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 347f27318..7dbaa361e 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -2559,7 +2559,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));
@@ -2579,7 +2579,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;