diff options
| author | nyamatongwe <unknown> | 2008-02-25 01:59:20 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2008-02-25 01:59:20 +0000 | 
| commit | 88d398cc4105e631ac72519302aecdfb64c58f19 (patch) | |
| tree | 66fd01b17beeeb4d9a5ed4aad51b90bead53a4ab /src | |
| parent | c203d281f6c3f262ae6747923b610ceddacb8440 (diff) | |
| download | scintilla-mirror-88d398cc4105e631ac72519302aecdfb64c58f19.tar.gz | |
Made fix for #1894195 work in single pass mode.
Diffstat (limited to 'src')
| -rw-r--r-- | src/Editor.cxx | 13 | 
1 files changed, 8 insertions, 5 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index db46cc13d..7f4ddcb51 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -2389,10 +2389,10 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis  						if (ll->chars[cpos + startseg] == ' ') {  							if (drawWhitespaceBackground &&  							        (!inIndentation || vsDraw.viewWhitespace == wsVisibleAlways)) { -								PRectangle rcSpace(ll->positions[cpos + startseg] + xStart - subLineStart,  -										rcSegment.top, -								        ll->positions[cpos + startseg + 1] + xStart - subLineStart,  -										rcSegment.bottom); +								PRectangle rcSpace(ll->positions[cpos + startseg] + xStart - subLineStart, +									rcSegment.top, +									ll->positions[cpos + startseg + 1] + xStart - subLineStart, +									rcSegment.bottom);  								surface->FillRectangle(rcSpace, vsDraw.whitespaceBackground.allocated);  							}  						} else { @@ -2524,7 +2524,10 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis  									if (!twoPhaseDraw && drawWhitespaceBackground &&  									        (!inIndentation || vsDraw.viewWhitespace == wsVisibleAlways)) {  										textBack = vsDraw.whitespaceBackground.allocated; -										PRectangle rcSpace(ll->positions[cpos + startseg] + xStart, rcSegment.top, ll->positions[cpos + startseg + 1] + xStart, rcSegment.bottom); +										PRectangle rcSpace(ll->positions[cpos + startseg] + xStart - subLineStart, +											rcSegment.top, +											ll->positions[cpos + startseg + 1] + xStart - subLineStart, +											rcSegment.bottom);  										surface->FillRectangle(rcSpace, textBack);  									}  									PRectangle rcDot(xmid + xStart - subLineStart, rcSegment.top + vsDraw.lineHeight / 2, 0, 0);  | 
