diff --git a/PROMS/Formats/fmtall/EXESAMall.xml b/PROMS/Formats/fmtall/EXESAMall.xml index c5334a0c..142a5383 100644 Binary files a/PROMS/Formats/fmtall/EXESAMall.xml and b/PROMS/Formats/fmtall/EXESAMall.xml differ diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 6277135c..fc905dac 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -2298,7 +2298,10 @@ namespace Volian.Print.Library float ctrs = ((float)MyItemInfo.MyDocStyle.Layout.PageWidth - (float)MyItemInfo.MyDocStyle.Layout.LeftMargin) / 2; float sctcntrXs = (float)MyItemInfo.MyDocStyle.Layout.LeftMargin + ctrs - (scttopWidths / 2); VE_Font vf = MyItemInfo.MyDocStyle.Font; - E_Style sty = (E_Style)(vf.Style | E_Style.Underline); + // F2017-039: The following null check was added in case the format's doc style does not have a font defined: + if (vf == null || vf.Style == null || vf.Family == null || vf.Size == null || vf.CPI == null) vf = MyItemInfo.ActiveFormat.PlantFormat.FormatData.Font; + E_Style sty = E_Style.Underline; + if (vf != null && vf.Style != null) sty = (E_Style)(vf.Style | E_Style.Underline); vf = new VE_Font(vf.Family, (int)vf.Size, sty, (float)vf.CPI); MyPageHelper.TopMessage = new vlnText(cb, this, "Supplemental Information", "Supplemental Information", sctcntrXs, yTopMargin + 0.1F, vf); return true;