Changed logic for ComponentList Page Breaks

If a page break in the RNO column falls within the range of an AER step, use the AER Step for the page break.
Dont break at the first substep if the first substep is an OR or Explicit AND
This commit is contained in:
Rich
2014-03-31 16:39:26 +00:00
parent d7e88e247a
commit ac7083febd
2 changed files with 27 additions and 1 deletions

View File

@@ -1331,7 +1331,12 @@ namespace Volian.Print.Library
vlnParagraph para = this;
if (!MyItemInfo.ActiveFormat.MyStepSectionLayoutData.PaginateOnFirstSubstep && ChildrenBelow != null && ChildrenBelow.Count > 0)
{
para = ChildrenBelow[0].GetFirstPieceLastPart();
// If the substep has a separator (OR, AND) then return the last substep rather than the first.
string mySep = ChildrenBelow[0].MyItemInfo.FormatStepData.Sep ?? "{Null}";
if (mySep != "{Null}" && mySep != "")
para = ChildrenBelow[ChildrenBelow.Count - 1].GetFirstPieceLastPart();
else
para = ChildrenBelow[0].GetFirstPieceLastPart();
}
if (ChildrenRight != null && ChildrenRight.Count > 0)
{