Added handler for Byron / Braidwood PageList tokens {TITLE&UNIT} and {SPLITEOPNUM}

Fixed the logic that leaves gaps in the Grid for Text Blocks and Boxes.  If the Text Blocks or the Boxes are outside the range of the plot.
This commit is contained in:
Rich
2013-10-23 18:18:09 +00:00
parent 2b49417673
commit 24dfe73886
2 changed files with 49 additions and 3 deletions

View File

@@ -1624,7 +1624,8 @@ namespace XYPlots
cptr = AllBoxes[BoxesIdx];
if (cptr.BoxMinimum.xyValue[flag] <= ptval &&
cptr.BoxMaximum.xyValue[flag] >= ptval)
if(cptr.BoxMinimum.xyValue[1-flag] > 0)// Don't include box if it is outside of the range of the grid.
if(cptr.BoxMinimum.xyValue[1-flag] > 0 &&
cptr.BoxMaximum.xyValue[1 - flag] < printerunits[1-flag])// Don't include box if it is outside of the range of the grid.
AddBoxToActiveList(cptr);
BoxesIdx++;
}