From 8a1bffef35f49bd3db379a68a2a935b5a0d35db2 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 9 Mar 2018 16:25:20 +0000 Subject: [PATCH] =?UTF-8?q?B2018-044=20=E2=80=93=20Approval=20workflow=20P?= =?UTF-8?q?DF=20page=20size=20was=20sometimes=20incorrect=20in=20procedure?= =?UTF-8?q?s=20with=20large=20landscape=20pages=20(greater=20than=208=20?= =?UTF-8?q?=C2=BD=20x=2011)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/Volian.Print.Library/PromsPrinter.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index 6687f6e4..53f30637 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -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