Fuzhou: Bug-fix in results printers when tests do not fit onto one page, ver.2.3.241.

This commit is contained in:
Milan Hanajik
2016-03-15 15:31:32 +08:00
parent c16964c1de
commit 224c9c4372
4 changed files with 6 additions and 3 deletions
@@ -263,8 +263,9 @@ namespace TBF.BenchControl.ResultsPrinters.Zapiska
if (pageNr == 1)
{
/// Determine the number of pages once
nrTabLinesOnNextPage = (topMargin + printHeight - TableTopNextPage - 70) / SpacingOne;
nrTabLinesOnFirstPage = (topMargin + printHeight - TableTopFirstPage - 70) / SpacingOne;
nrTabLinesOnNextPage = (topMargin + printHeight - TableTopNextPage - 70) / SpacingOne;
nrTabLinesOnNextPage = Math.Max(1, nrTabLinesOnNextPage); /// Prevent division by zero
if (nrRows <= nrTabLinesOnFirstPage)
{