From 8a14d2a0439e8016db88ee92b88c1f06469f6043 Mon Sep 17 00:00:00 2001 From: Rich Date: Mon, 17 Jun 2013 05:39:46 +0000 Subject: [PATCH] A code when drawing boxes involving 2 notes or 2 cautions such that VCSummer data and Sharon Harris data created PDFs correctly --- PROMS/Volian.Print.Library/vlnParagraph.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index 95e2fac4..7830e168 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -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];