<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1219,8 +1219,12 @@ class TaskJuggler
     def isDependencyOf(task, depth)
       return true if task == @property
 
-      @property.children.each do |t|
+      # Check if any of the parent tasks is a dependency of _task_.
+      t = @property.parent
+      while t
+        # If the parent is a dependency, than all childs are as well.
         return true if t.isDependencyOf(@scenarioIdx, task, depth)
+        t = t.parent
       end
 
 </diff>
      <filename>lib/TaskScenario.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fb4952ec63ef4500cd3b3709c7d80adbaf02837c</id>
    </parent>
  </parents>
  <author>
    <name>Chris Schlaeger</name>
    <email>cs@kde.org</email>
  </author>
  <url>http://github.com/jeremyz/taskjuggler3/commit/964a82b01fb25b45c8a627df8cc26037dae13a4d</url>
  <id>964a82b01fb25b45c8a627df8cc26037dae13a4d</id>
  <committed-date>2009-11-10T05:03:27-08:00</committed-date>
  <authored-date>2009-11-10T05:03:27-08:00</authored-date>
  <message>Fix isdependencyof.</message>
  <tree>845c6769ea95c560a807e31f441e76f7d7edf5d4</tree>
  <committer>
    <name>Chris Schlaeger</name>
    <email>cs@kde.org</email>
  </committer>
</commit>
