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:
Paul Beckingham 2009-03-15 16:39:41 -04:00
parent 65f74da7a4
commit b5690f00e2

View file

@ -1032,7 +1032,7 @@ const std::string Table::render (int maximum /* = 0 */)
// the table that are rendered. // the table that are rendered.
int limit = mRows; int limit = mRows;
if (maximum != 0) if (maximum != 0)
limit = maximum; limit = min (maximum, mRows);
// Print all rows. // Print all rows.
for (int row = 0; row < limit; ++row) for (int row = 0; row < limit; ++row)