A code when drawing boxes involving 2 notes or 2 cautions such that VCSummer data and Sharon Harris data created PDFs correctly

This commit is contained in:
Rich 2013-06-17 05:39:46 +00:00
parent ae2922e976
commit 8a14d2a043

View File

@ -85,8 +85,10 @@ namespace Volian.Print.Library
if (box != null)
{
box.Height = yoff - box.YOffset; // new height, with children
//if (childItemInfo.MyHeader != null)
// yoff += vlnPrintObject.SixLinesPerInch * 2;
if (childItemInfo.MyHeader != null && childItemInfo.MyPrevious != null
&& ((childItemInfo.MyPrevious.IsCaution && childItemInfo.IsCaution) ||
(childItemInfo.MyPrevious.IsNote && childItemInfo.IsNote)))
yoff += vlnPrintObject.SixLinesPerInch * 2;
}
box = new vlnBox();
box.MyBox = formatInfo.PlantFormat.FormatData.BoxList[(int)bxIndx];