Portabiliy - Fedora 9, Ubuntu 8
- The custom report limit "report.x.limit" was being used to limit the rendered rows in the table. Instead, there should be something like min (limit, actual_rows) used, in Table.cpp. The symptom was duplicate tasks in a "task oldest" report, when there were less than 10 tasks.
This commit is contained in:
@@ -1032,7 +1032,7 @@ const std::string Table::render (int maximum /* = 0 */)
|
||||
// the table that are rendered.
|
||||
int limit = mRows;
|
||||
if (maximum != 0)
|
||||
limit = maximum;
|
||||
limit = min (maximum, mRows);
|
||||
|
||||
// Print all rows.
|
||||
for (int row = 0; row < limit; ++row)
|
||||
|
||||
Reference in New Issue
Block a user