From 58cb0f1c774141c1395ddcd84dd48e9d4c873f08 Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 29 May 2012 10:54:03 +0000 Subject: [PATCH] Added a fix not to check for font if the paragraph is not a step. --- PROMS/Volian.Print.Library/vlnPrintObject.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnPrintObject.cs b/PROMS/Volian.Print.Library/vlnPrintObject.cs index 35ba7441..7b73f385 100644 --- a/PROMS/Volian.Print.Library/vlnPrintObject.cs +++ b/PROMS/Volian.Print.Library/vlnPrintObject.cs @@ -121,7 +121,7 @@ namespace Volian.Print.Library vlnParagraph myParagraph = this as vlnParagraph; if (myParagraph != null) { - if (myParagraph.MyItemInfo.FormatStepData.Font.Family == "Prestige Elite Tall") + if (myParagraph.MyItemInfo.FormatStepData != null && myParagraph.MyItemInfo.FormatStepData.Font.Family == "Prestige Elite Tall") { Chunk chk = RemoveLastCharacter(iParagraph); float heightAllButOne = GetHeight(cb, iParagraph, width, throwException);