B2017-132 added a check for null reference. When processing PDF chunks during sup info printing we were trying to process a vlnmacro that was set to null

This commit is contained in:
John Jenko 2017-06-29 16:21:17 +00:00
parent 68cee53957
commit e1e1bbb38a

View File

@ -1964,6 +1964,7 @@ namespace Volian.Print.Library
/// <param name="scaler">Multiplier</param>
private void NewSupInfoFixParts(vlnPrintObject po, float scaler)
{
if (po.IParagraph == null) return; // B2017-132 check for NULL reference (happend printing Bryon SAMGS with sup info pages)
// Adjust the font size by the multiplier
foreach (Chunk chk in po.IParagraph.Chunks)
chk.Font.Size = scaler * chk.Font.Size;