From d63ae83ee84ead8cb26bceb7c61df7a6f46b2925 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 5 Jun 2023 20:09:45 +0000 Subject: [PATCH] B2023-068 fixed a null reference error preventing a SAMG procedure from printing B2023-069 added a document style flag SecOvrideSupInfoTabOff to allow for the adjustment of the Supplemental Information step tabs on a per section basis --- PROMS/Volian.Print.Library/vlnParagraph.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 5cf697d8..8f441dfa 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -2426,7 +2426,8 @@ namespace Volian.Print.Library // and if so, return the id. ItemInfo par = ii.MyParent; ItemInfo parsnxt = par.GetNext(); - if (!par.IsSection && parsnxt != null) + //B2023-068 check if we are already at the section or procedure level + if (!par.IsSection && !par.IsProcedure && parsnxt != null) { par = parsnxt; while (par != null && !par.IsSection) @@ -6028,6 +6029,10 @@ namespace Volian.Print.Library { // The SupInfoTabOff was added to the base format during initial development to shift the tab over by 3/4 inch (54) to allow for enough space for Note/Caution tab int sitabloc = itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SupInfoTabOff == null ? 0 : (int)itemInfo.ActiveFormat.PlantFormat.FormatData.PrintData.SupInfoTabOff; + // B2023-069 allow for the adjustment of the Supplemental Information tab at the section level (SecOvrideSupInfoTabOff). + // this will also override the SupInoTabOff setting which is for the entire format + int secOvrSupInfoTab = itemInfo.MyDocStyle.SecOvrideSupInfoTabOff == null ? 0 : (int)itemInfo.MyDocStyle.SecOvrideSupInfoTabOff; + if (secOvrSupInfoTab != 0) sitabloc = secOvrSupInfoTab; XOffset = (float)itemInfo.MyDocStyle.Layout.LeftMargin + sitabloc; if (myTab != null) {