Fixed null reference error
This commit is contained in:
parent
5538a252d7
commit
5607479e79
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user