mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
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:
parent
65f74da7a4
commit
b5690f00e2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue