From 3bb7abf9c3a459baef3f2ad9f90929d432ce7536 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 7 Aug 2010 20:05:34 -0400 Subject: [PATCH] Bug - limit - When the 'limit:N' filter was used, a confusing message was displayed, especially when there were fewer filtered tasks that the limit. --- src/custom.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/custom.cpp b/src/custom.cpp index 5938c5e0c..5917564e8 100644 --- a/src/custom.cpp +++ b/src/custom.cpp @@ -659,8 +659,8 @@ int handleCustomReport (const std::string& report, std::string &outs) if (maxrows) out << ", " << maxrows << " shown"; - if (maxlines < table.rowCount ()) - out << ", truncated to " << maxlines-1 << " lines"; + if (maxlines && maxlines < table.rowCount ()) + out << ", truncated to " << maxlines - 1 << " lines"; out << std::endl; }