From 5607479e79112fcc9e83f1652aec979823c06ce8 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 24 Jan 2014 18:33:08 +0000 Subject: [PATCH] Fixed null reference error --- PROMS/Volian.Print.Library/vlnParagraph.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index c8b609e9..02f5b4d9 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -3057,9 +3057,9 @@ namespace Volian.Print.Library else Width = (float)formatInfo.MyStepSectionLayoutData.WidT - 6 - mycolT; XOffset += mycolT; // adjust caution/note text position - if (PartsLeft != null)// adjust tab position + if (PartsLeft != null && PartsLeft.Count > 0)// adjust tab position { - if(itemInfo.IsNote || itemInfo.IsCaution) + if(myTab!=null && (itemInfo.IsNote || itemInfo.IsCaution)) Width -= myTab.Width; foreach (vlnPrintObject vpo in PartsLeft) vpo.XOffset += mycolT;