Fixed a null reference error during print

This commit is contained in:
John Jenko 2014-04-07 15:52:27 +00:00
parent f97dc5780d
commit 7bfc62e1b8

View File

@ -440,7 +440,7 @@ namespace Volian.Print.Library
}
}
// MNS Pagination - Mike Weiner Case 1b to keep substeps together on one page
if (MyItemInfo.ActiveFormat.MyStepSectionLayoutData.PutOnPageByItself && !paraBreak.MyParent.MyItemInfo.IsHigh)
if (MyItemInfo.ActiveFormat.MyStepSectionLayoutData.PutOnPageByItself && !paraBreak.MyParent.MyItemInfo.IsHigh && !paraBreak.MyItemInfo.IsHigh)
{
vlnParagraph firstLevel = paraBreak.MyParent;
while (firstLevel.MyItemInfo.IsInRNO) firstLevel = firstLevel.MyParent;