From 6196f1ff3c4fbb5d674325f99623dc74d865dd96 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 15 Dec 2011 18:37:44 +0000 Subject: [PATCH] Needed to add a check for null --- PROMS/Volian.Print.Library/vlnTab.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnTab.cs b/PROMS/Volian.Print.Library/vlnTab.cs index 85c0e815..0fbfbf1e 100644 --- a/PROMS/Volian.Print.Library/vlnTab.cs +++ b/PROMS/Volian.Print.Library/vlnTab.cs @@ -125,13 +125,13 @@ namespace Volian.Print.Library Text = origTab.Replace("Caution ", "\uF043\uF061\uF069\uF06E\uF06F\uF074\uF075\uF020\uF020"); Width = 90; } - else if ((myparent.MyItemInfo.FormatStepData.TabData.IdentWidth ?? 0) > 0) + else if ((myparent.MyItemInfo.FormatStepData != null) && (myparent.MyItemInfo.FormatStepData.TabData.IdentWidth ?? 0) > 0) Width = (float)myparent.MyItemInfo.FormatStepData.TabData.IdentWidth; else if (CCCs != IIIs) Width = Text.Length * 6; //proportial font (7 chars * 6) else Width = GetTextWidth(MyFont, (Text != null ? Text : origTab), symblFontName);//MyFont.CharsToTwips * (Text != null ? Text.Length : origTab.Length); - if (myparent.MyItemInfo.FormatStepData.TabData.Bullet.Separate) + if ((myparent.MyItemInfo.FormatStepData != null) && myparent.MyItemInfo.FormatStepData.TabData.Bullet.Separate) if (myparent.MyItemInfo.MyPrevious != null || myparent.MyItemInfo.NextItem != null) SeparateBullet = true; //if (MyParent.MyItemInfo.ItemID == 108)//120)