Rules: Added parens to fix conditional

This commit is contained in:
Paul Beckingham 2015-09-04 00:10:34 -04:00
parent 184d736763
commit 8536dc9658

View file

@ -218,7 +218,7 @@ static void colorizeUDA (Task& task, const std::string& rule, const Color& base,
{
const std::string uda = rule.substr (10, pos - 10);
const std::string val = rule.substr (pos + 1);
if (val == "none" && ! task.has (uda) ||
if ((val == "none" && ! task.has (uda)) ||
task.get (uda) == val)
applyColor (base, c, merge);
}