Dependencies - depend on self

- Prevented tasks from being specified as depending on themselves.
This commit is contained in:
Paul Beckingham 2010-07-12 20:19:02 -04:00
parent d87e7c6934
commit 98cef98111

View file

@ -470,6 +470,9 @@ void Task::removeAnnotations ()
////////////////////////////////////////////////////////////////////////////////
void Task::addDependency (int id)
{
if (id == this->id)
throw std::string ("A task cannot be dependent on itself.");
std::string uuid = context.tdb.uuid (id);
if (uuid == "")
{