OSDN Git Service

Fixed problem with completion degree reporting.
authorChris Schlaeger <cs@kde.org>
Thu, 16 Apr 2009 17:45:05 +0000 (19:45 +0200)
committerChris Schlaeger <cs@kde.org>
Thu, 16 Apr 2009 17:45:05 +0000 (19:45 +0200)
Container tasks with only sub tasks that had allocation attributes but
got no resources allocated. Problem was reported by JohnZ.

docs/en/ChangeLog.xml
taskjuggler/Task.cpp

index 2415200..9ed0901 100644 (file)
@@ -1336,6 +1336,10 @@ characters are used.</para></listitem>
                specified effort but the daily working hours were not
                in sync with the declaration.</para></listitem>
 
+<listitem><para>Fixed the completion reporting for container tasks
+               which subtasks had allocated resources but got no
+               slots allocated.</para></listitem>
+
 </itemizedlist></para>
 
 </sect2>
index c6d52b4..08e4c12 100644 (file)
@@ -3445,7 +3445,7 @@ Task::sumUpEffort(int sc, time_t now, double& totalEffort,
         else
             reportedCompletedEffort += load;
 
-        return true;
+        return totalEffort > 0.0;
     }
     if (isMilestone())
     {