From d5eca1178669f20257a54fad3523b68b07ad8d26 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 12 Feb 2015 16:13:10 +0000 Subject: [PATCH] Fixed Calvert bug where an attachment section had a title but no number which caused the title to print too far to the left. --- PROMS/Volian.Print.Library/vlnParagraph.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/vlnParagraph.cs b/PROMS/Volian.Print.Library/vlnParagraph.cs index a9ed7c40..81ec256e 100644 --- a/PROMS/Volian.Print.Library/vlnParagraph.cs +++ b/PROMS/Volian.Print.Library/vlnParagraph.cs @@ -2345,7 +2345,11 @@ namespace Volian.Print.Library if (itemInfo.IsFootnote) itemInfo.MyTab = null; - if (itemInfo.MyTab != null && itemInfo.MyTab.Text != null && itemInfo.MyTab.Text != "") + //if (itemInfo.MyTab != null && itemInfo.MyTab.Text != null && itemInfo.MyTab.Text != "") + // bug fix - if the section does not have a section number, then we need to build an empty tab for the itemInfo + // so that we place the section title in the correct location. so we need to go into this IF code block + // even if itemInfo has a MyTab that is an empty string when itemInfo is a section - 2/11/2015 + if (itemInfo.MyTab != null && itemInfo.MyTab.Text != null && (itemInfo.MyTab.Text != "" || itemInfo.IsSection)) { float localXOffset = XOffset; bool doprint = true;