Bug Fix - blank annotations now disallowed

- Prevented blank annotations from being added, and the description
  being echoed as though it were the annotation applied (thanks to
  Bruce Dillahunty).
- Added bug.annotate.t unit test to prevent regression.
This commit is contained in:
Paul Beckingham 2009-05-27 01:01:25 -04:00
parent 8dd9690a65
commit 0fcaf85652
6 changed files with 73 additions and 10 deletions

View file

@ -948,6 +948,9 @@ std::string handleColor (Config& conf)
////////////////////////////////////////////////////////////////////////////////
std::string handleAnnotate (TDB& tdb, T& task, Config& conf)
{
if (task.getDescription () == "")
throw std::string ("Cannot apply a blank annotation.");
std::stringstream out;
std::vector <T> all;
tdb.pendingT (all);