diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index aeb292c9..c43b36fc 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -1388,26 +1388,25 @@ namespace Volian.Print.Library { ItemInfo ii = (ItemInfo)MyItemInfo.ActiveSection; int indx = (int)MyItemInfo.ActiveSection.MyDocStyle.IndexOtherThanFirstPage; - bool reassignedDocStyle = false; // C2018-004 create meta file for baseline compares foreach (DocStyle ds in ii.ActiveFormat.PlantFormat.DocStyles.DocStyleList) { if (ds.Index == indx) { // C2018-004 create meta file for baseline compares + // B2020-008: removed some code that was causing the header to not get refreshed, and uncommented + // out the ResetSvg command below. Volian.Base.Library.BaselineMetaFile.WriteLine("Reset DocStyle to \"{0}\"",ds.Name); MyItemInfo.ActiveSection.MyDocStyle = ds; MyPageHelper.MySection = MyItemInfo.ActiveSection as SectionInfo; MyPageHelper.MySection.MyDocStyle = ds; - //MyPageHelper.ResetSvg(); this is done when MyPageHelper.MySection is assigned - no need to do again. - reassignedDocStyle = true; // C2018-004 create meta file for baseline compares + MyPageHelper.ResetSvg(); break; } } MyPageHelper.DidFirstPageDocStyle = true; if (DebugPagination.IsOpen) DebugPagination.WriteLine("ResetDocStyleAndValues"); if (BaselineMetaFile.IsOpen) BaselineMetaFile.WriteLine("!! ResetDocStyleAndValues"); //C2018-015 add debug pagination to meta file - if (!reassignedDocStyle) // C2018-004 create meta file for baseline compares - MyPageHelper.MySection = (SectionInfo)MyItemInfo.ActiveSection; + MyPageHelper.MySection = (SectionInfo)MyItemInfo.ActiveSection; yTopMargin = _PointsPerPage - (float)MyItemInfo.ActiveSection.MyDocStyle.Layout.TopMargin; yBottomMargin = Math.Max(0, yTopMargin - (float)MyItemInfo.ActiveSection.MyDocStyle.Layout.PageLength); }