From 9f4a9d132558b561fc8bf725836b5d46106dbe7f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 1 Jul 2009 21:19:22 -0400 Subject: [PATCH] Enhancement - When a report displays completed or deleted tasks, there is no ID, so display "-" instead of "0". --- src/custom.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/custom.cpp b/src/custom.cpp index b56278ac9..bc89f8702 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -177,7 +177,10 @@ std::string runCustomReport ( int row = 0; foreach (task, tasks) - table.addCell (row++, columnCount, task->id); + if (task->id != 0) + table.addCell (row++, columnCount, task->id); + else + table.addCell (row++, columnCount, "-"); } else if (*col == "uuid")