From 488b23f42f07b82c323d51ae22d54e1f2dea5a90 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 25 Oct 2010 00:37:56 -0400 Subject: [PATCH] Bug - Flipped the test and error message for wait dates that must be before due dates. --- src/Task.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Task.cpp b/src/Task.cpp index 82765b813..6b4e787fe 100644 --- a/src/Task.cpp +++ b/src/Task.cpp @@ -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 ()));