aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <unknown>2000-06-22 12:48:52 +0000
committernyamatongwe <unknown>2000-06-22 12:48:52 +0000
commit66d9b800919e0c5a3a58699a9b22b3c6bfa1ab61 (patch)
tree87a0d504d9e37b432a335e589b9c386e9f0a03c7 /src
parent4eefcbc170bbb0647d4828dbc1a0f93399e2db95 (diff)
downloadscintilla-mirror-66d9b800919e0c5a3a58699a9b22b3c6bfa1ab61.tar.gz
Fixed tests for view whitespace to be the right way around.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 26f61f7c8..14dbb87df 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -862,7 +862,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis
//}
}
if (vsDraw.viewWhitespace != wsInvisible) {
- if (inIndentation || vsDraw.viewWhitespace == wsVisibleAlways) {
+ if (!inIndentation || vsDraw.viewWhitespace == wsVisibleAlways) {
PRectangle rcTab(rcSegment.left + 1, rcSegment.top + 4,
rcSegment.right - 1, rcSegment.bottom - vsDraw.maxDescent);
DrawTabArrow(surface, rcTab, rcSegment.top + vsDraw.lineHeight / 2);
@@ -906,7 +906,7 @@ void Editor::DrawLine(Surface *surface, ViewStyle &vsDraw, int line, int lineVis
for (int cpos = 0; cpos <= i - startseg; cpos++) {
if (ll.chars[cpos + startseg] == ' ') {
if (vsDraw.viewWhitespace != wsInvisible) {
- if (inIndentation || vsDraw.viewWhitespace == wsVisibleAlways) {
+ if (!inIndentation || vsDraw.viewWhitespace == wsVisibleAlways) {
int xmid = (ll.positions[cpos + startseg] + ll.positions[cpos + startseg + 1]) / 2;
PRectangle rcDot(xmid + xStart, rcSegment.top + vsDraw.lineHeight / 2, 0, 0);
rcDot.right = rcDot.left + 1;