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:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user