From 44e2e7c3167e98c82e28f4d077d5f963f2ea446a Mon Sep 17 00:00:00 2001 From: Neil Hodgson Date: Sat, 26 Sep 2015 10:47:50 +1000 Subject: Add parentheses to fix warning from Clang. --- src/ViewStyle.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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; } -- cgit v1.2.3