Changed code to correctly handle the location of check-offs and sign-offs.

This commit is contained in:
Rich 2013-07-16 18:12:37 +00:00
parent 12f492516f
commit 60fc6bbd18

View File

@ -1471,9 +1471,9 @@ namespace Volian.Print.Library
} }
else else
{ {
if (formatInfo.PlantFormat.FormatData.ProcData.CheckOffData.XLocation != null) if (formatInfo.PlantFormat.FormatData.ProcData.CheckOffData.XLocation != 0)
xloc_co += (float)formatInfo.PlantFormat.FormatData.ProcData.CheckOffData.XLocation; xloc_co += (float)formatInfo.PlantFormat.FormatData.ProcData.CheckOffData.XLocation;
if (formatInfo.PlantFormat.FormatData.ProcData.CheckOffData.RelXLocation != null) else if (formatInfo.PlantFormat.FormatData.ProcData.CheckOffData.RelXLocation != 0)
{ {
float relX = (float)formatInfo.PlantFormat.FormatData.ProcData.CheckOffData.RelXLocation; float relX = (float)formatInfo.PlantFormat.FormatData.ProcData.CheckOffData.RelXLocation;
xloc_co = XOffset + (relX > 0 ? Width : 0) + relX; xloc_co = XOffset + (relX > 0 ? Width : 0) + relX;