B2015-083: For WCNTRN, the Responsibility data was not wrapping correctly in some cases. This was fixed.

This commit is contained in:
Kathy Ruffing 2015-06-18 13:15:36 +00:00
parent eaa5d49b65
commit 3aef30629c

View File

@ -3657,7 +3657,7 @@ namespace Volian.Print.Library
results.Add(responsStr.Substring(start, lastspace - start).Trim(" ".ToCharArray()) + "\r\n");
start = lastspace + (spFound?1:0); // increment start based on whether a space is found, i.e. if no space keep at 'indx'
// width either is equal to width of text after the last space, or is zero if at the maxlen of width:
width = (width - start - 1) > 0 ? width - start - 1 : 0;
width = (indx - lastspace - 1) > 0 ? indx - lastspace - 1 : 0;
lastspace = 0;
}
}