For tab comparison, trim strings before doing comparison in code that determines whether subsection number is derived from section number (IsSubsectionNumber)

If parent was continuous & this is separate, need to paginate to get subsection on its own page
For sections/subsections: if parent was continuous & this is separate, don’t reset docstyle until after separate section pagebreak; if separator location is ‘0’, x-offset should be at tab not text of step
This commit is contained in:
2014-12-04 16:03:06 +00:00
parent 78b211c90a
commit 27c8d89bed
3 changed files with 23 additions and 2 deletions

View File

@@ -35,6 +35,10 @@ namespace Volian.Print.Library
if (MyItemInfo.IsSection && MyParent != null && MyParent.MyItemInfo.IsSection && (MyItemInfo as SectionInfo).IsSeparatePagination())
{
ShowPageBreak(1, "Page Break between separate sections", "Yes", YSize, yPageSize, yWithinMargins, ManualPageBreak);
// if parent was continuous & this is separate, need to paginate to get subsection on
// its own page. This occurred in BGE/OI3 set/OI-7 procedure/10.0 Attachments.
if (!(MyParent.MyItemInfo as SectionInfo).IsSeparatePagination()) return 1;
if (MyItemInfo.MyPrevious != null) // add if statement to fix Westinghouse print issue 3-21-2014
return 1;
}