+ Fixed bug #783, which fixes completed and deleted tasks still showing as
  active (thanks to Adam Wolk).
This commit is contained in:
Paul Beckingham 2011-06-07 01:21:05 -04:00
parent 7c910e46be
commit 90f6f537fe
6 changed files with 21 additions and 29 deletions

View file

@ -63,7 +63,10 @@ void ColumnStart::measure (Task& task, int& minimum, int& maximum)
if (task.has (_attribute))
{
if (_style == "active")
minimum = maximum = context.config.get ("active.indicator").length ();
{
if (! task.has ("end"))
minimum = maximum = context.config.get ("active.indicator").length ();
}
else
ColumnDate::measure (task, minimum, maximum);
}
@ -80,10 +83,11 @@ void ColumnStart::render (
{
if (_style == "active")
{
lines.push_back (
color.colorize (
rightJustify (
context.config.get ("active.indicator"), width)));
if (! task.has ("end"))
lines.push_back (
color.colorize (
rightJustify (
context.config.get ("active.indicator"), width)));
}
else
ColumnDate::render (lines, task, width, color);