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; }