From d7c446f010dd1890ba68c60287a93d6de6d203b4 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Thu, 1 Jul 2010 01:06:43 -0400 Subject: [PATCH] Bug - Fixed bug that miscalculated terminal width for the ghistory.annual report. --- ChangeLog | 2 ++ src/report.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6c9c03ba3..4bcf9ebde 100644 --- a/ChangeLog +++ b/ChangeLog @@ -49,6 +49,8 @@ versions earlier than 1.9.1 to those created by 1.9.1 or later (thanks to Ivo Jimenez). + Fixed bug that prevented 'task list priority.above:L' from working. + + Fixed bug that miscalculated terminal width for the ghistory.annual + report. ------ old releases ------------------------------ diff --git a/src/report.cpp b/src/report.cpp index 48db64be7..b07d3c34f 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -1028,6 +1028,7 @@ int handleReportHistoryMonthly (std::string &outs) return rc; } +//////////////////////////////////////////////////////////////////////////////// int handleReportHistoryAnnual (std::string &outs) { int rc = 0; @@ -1457,7 +1458,7 @@ int handleReportGHistoryAnnual (std::string &outs) } } - int widthOfBar = context.getWidth () - 15; // 15 == strlen ("2008 September ") + int widthOfBar = context.getWidth () - 5; // 5 == strlen ("2008 ") // Now build the table. Table table;