diff options
author | Neil Hodgson <nyamatongwe@gmail.com> | 2015-09-26 10:47:50 +1000 |
---|---|---|
committer | Neil Hodgson <nyamatongwe@gmail.com> | 2015-09-26 10:47:50 +1000 |
commit | 7206c3da46d3008d970558d557daf4d85ac31ab4 (patch) | |
tree | 0273afd24f80cd25a3b5eedcd6dcf1cae7ae7702 /src | |
parent | c52b08fd5737a4abebb6db7af8533fa6ce1238f5 (diff) | |
download | scintilla-mirror-7206c3da46d3008d970558d557daf4d85ac31ab4.tar.gz |
Add parentheses to fix warning from Clang.
Diffstat (limited to 'src')
-rw-r--r-- | src/ViewStyle.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 9416ddcc6..ae68d8bff 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -513,8 +513,8 @@ bool ViewStyle::WhitespaceBackgroundDrawn() const { } bool ViewStyle::WhiteSpaceVisible(bool inIndent) const { - return !inIndent && viewWhitespace == wsVisibleAfterIndent || - inIndent && viewWhitespace == wsVisibleOnlyInIndent || + return (!inIndent && viewWhitespace == wsVisibleAfterIndent) || + (inIndent && viewWhitespace == wsVisibleOnlyInIndent) || viewWhitespace == wsVisibleAlways; } |