B2018-044 – Approval workflow PDF page size was sometimes incorrect in procedures with large landscape pages (greater than 8 ½ x 11)

This commit is contained in:
John Jenko 2018-03-09 16:25:20 +00:00
parent 2dd35e476b
commit 8a1bffef35

View File

@ -521,14 +521,14 @@ namespace Volian.Print.Library
private SectionInfo GetNextSection(SectionInfo currentSection)
{
if (currentSection.Sections != null)
return currentSection.Sections[0] as SectionInfo;
return currentSection.Sections[0].GetSectionInfo();
if (currentSection.NextItem != null)
return currentSection.NextItem as SectionInfo;
SectionInfo parent = currentSection.ActiveParent as SectionInfo;
return currentSection.NextItem.GetSectionInfo();
ItemInfo parent = currentSection.ActiveParent as ItemInfo;
while (parent != null && parent.NextItem == null)
parent = parent.ActiveParent as SectionInfo;
parent = parent.ActiveParent as ItemInfo;
if (parent == null) return null;
return parent.NextItem as SectionInfo;
return parent.NextItem.GetSectionInfo();
}
private SectionInfo _PreviousWordSection = null;
public SectionInfo PreviousWordSection