aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2000-06-22 12:48:52 +0000
committernyamatongwe <devnull@localhost>2000-06-22 12:48:52 +0000
commit9598bdd5fb097340eda7e3277e53fe34e39ee75b (patch)
tree87a0d504d9e37b432a335e589b9c386e9f0a03c7 /src
parent087593e79640157e010e664d9027d82f36bba1dd (diff)
downloadscintilla-mirror-9598bdd5fb097340eda7e3277e53fe34e39ee75b.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;