Fixed logic that determines when a step is continued on next page so that it uses the phonelist length

Fixed logic that counts the number of lines a phone list takes
Added number of lines an item take up in our debug (micro-print) message
This commit is contained in:
2014-08-22 17:07:14 +00:00
parent 9393fc01d4
commit 310fb42c3c
4 changed files with 9 additions and 6 deletions

View File

@@ -518,7 +518,7 @@ namespace Volian.Print.Library
if (phlist != null && phlist != "")
{
// count lines:
int cl = 1;
int cl = 0;
int indx = phlist.IndexOf("\n");
while (indx > 0)
{
@@ -528,6 +528,7 @@ namespace Volian.Print.Library
else
indx = phlist.IndexOf("\n", indx + 1);
}
if (cl == 0) cl = 1; // phone list is a single line without an ending newline
_MyHelper.PhoneListHeight = cl * vlnPrintObject.SixLinesPerInch;
}
}