- Flipped the test and error message for wait dates that must be before due
  dates.
This commit is contained in:
Paul Beckingham 2010-10-25 00:37:56 -04:00
parent ffa1bac193
commit 488b23f42f

View file

@ -647,8 +647,8 @@ void Task::validate () const
if (has ("wait"))
{
Date wait (::atoi (get ("wait").c_str ()));
if (wait < due)
throw std::string ("A 'wait' date must be after a 'due' date.");
if (wait > due)
throw std::string ("A 'wait' date must be before a 'due' date.");
}
Date entry (::atoi (get ("entry").c_str ()));