B2020-008: Second page of Alarm format prints over part of header
This commit is contained in:
parent
2bc4a8d105
commit
27b3ce2ff2
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user