TW-1428
- Minor tweaks.
This commit is contained in:
@@ -232,9 +232,10 @@ static void colorizeUDA (Task& task, const std::string& rule, const Color& base,
|
|||||||
if (task.has (rule.substr (10)))
|
if (task.has (rule.substr (10)))
|
||||||
c.blend (base);
|
c.blend (base);
|
||||||
}
|
}
|
||||||
else {
|
else
|
||||||
const std::string uda = rule.substr (10, pos-10);
|
{
|
||||||
const std::string val = rule.substr (pos+1);
|
const std::string uda = rule.substr (10, pos - 10);
|
||||||
|
const std::string val = rule.substr (pos + 1);
|
||||||
if (task.get (uda) == val)
|
if (task.get (uda) == val)
|
||||||
c.blend (base);
|
c.blend (base);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,7 +27,7 @@
|
|||||||
|
|
||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
use Test::More tests => 2;
|
use Test::More tests => 3;
|
||||||
|
|
||||||
# Ensure environment has no influence.
|
# Ensure environment has no influence.
|
||||||
delete $ENV{'TASKDATA'};
|
delete $ENV{'TASKDATA'};
|
||||||
|
|||||||
Reference in New Issue
Block a user