Fixed logic where a section that was set to print continuous started on its own page

This commit is contained in:
John Jenko 2014-11-10 20:11:44 +00:00
parent 3237a2345b
commit 89cf100425

View File

@ -106,7 +106,7 @@ namespace Volian.Print.Library
if (ChildrenBelow.Count > 1)
firstChild = ChildrenBelow[1];
}
else if (firstChild != null && firstChild.MyItemInfo != null && !firstChild.MyItemInfo.IsNumbered) // If not numbered get the last child
else if (!MyItemInfo.IsSection && firstChild != null && firstChild.MyItemInfo != null && !firstChild.MyItemInfo.IsNumbered) // If not numbered get the last child
firstChild = firstChild.MyParent.ChildrenBelow[firstChild.MyParent.ChildrenBelow.Count - 1];
float ySizeIncludingFirst = firstChild == null ? YSize : firstChild.YSize + (firstChild.YTopMost - YTopMost);
bool KeepStepsOnPage = MyItemInfo.ActiveFormat.MyStepSectionLayoutData.KeepStepsOnPage;