From de4194479afb113b67908b3b0ef7d6962e43f436 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 10 May 2009 01:03:53 -0400 Subject: [PATCH] Bug Fix - ghistory ignoring deletions - Fixed bug that prevented months with only deletions from being included in the report. --- src/report.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/report.cpp b/src/report.cpp index 7f0eaa879..5c1f42791 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -1142,6 +1142,7 @@ std::string handleReportGHistory (TDB& tdb, T& task, Config& conf) if (task.getStatus () == T::deleted) { epoch = monthlyEpoch (task.getAttribute ("end")); + groups[epoch] = 0; if (deletedGroup.find (epoch) != deletedGroup.end ()) deletedGroup[epoch] = deletedGroup[epoch] + 1; @@ -1151,6 +1152,8 @@ std::string handleReportGHistory (TDB& tdb, T& task, Config& conf) else if (task.getStatus () == T::completed) { epoch = monthlyEpoch (task.getAttribute ("end")); + groups[epoch] = 0; + if (completedGroup.find (epoch) != completedGroup.end ()) completedGroup[epoch] = completedGroup[epoch] + 1; else