Modified where RNOIdent value is obtained when it is blank for RNO type items
Added checks to Pagination FindPageBreak method Modified vlnParagraph constructor to handle HLStpSeparatorString and HLRNOStpSeparatorString properties of plant format
This commit is contained in:
@@ -461,7 +461,8 @@ namespace Volian.Print.Library
|
||||
&& myParent.ChildrenRight[0].YSize <= fullPage && myParent.ChildrenRight[0].YSize > spaceOnPage)
|
||||
{
|
||||
//_MyLog.WarnFormat("\r\nMyParentBreak {0},{1},{2},{3},{4}", myParent, myParent.YSize, yUpperLimit, myParent.ChildrenRight[0].YSize, spaceOnPage);
|
||||
return myParent;
|
||||
if(myParent != lastBreak)
|
||||
return myParent;
|
||||
}
|
||||
// The top of this step will fit onto page (-yLocation < yWithinMargins)
|
||||
float wcnChkLstBorder = myPara.MyItemInfo.MyHLS != null && myPara.MyItemInfo.MyHLS.FormatStepData.UseSmartTemplate &&
|
||||
@@ -478,11 +479,13 @@ namespace Volian.Print.Library
|
||||
//if (myList[stepLevel][yLocation].MyItemInfo.ItemID == 4312) Console.WriteLine("rno");
|
||||
// The top of this step is more than 1/2 way down the page
|
||||
if ((-yLocation + yStart) >= yLowerLimit)
|
||||
return myPara;
|
||||
if (myPara != lastBreak)
|
||||
return myPara;
|
||||
|
||||
// If this item will not fit on the current page, put a page break
|
||||
if (myPara.YBottom - myPara.YTop > (yUpperLimit - (-yLocation + yStart)))
|
||||
return myPara;
|
||||
if (myPara != lastBreak)
|
||||
return myPara;
|
||||
// if is a caution or note & parent is a substep and entire substep doesn't fit, break.
|
||||
if ((myPara.MyItemInfo.IsNote || myPara.MyItemInfo.IsCaution) &&
|
||||
!myPara.MyParent.MyItemInfo.IsHigh &&
|
||||
|
Reference in New Issue
Block a user