Fixed Calvert bug where an attachment section had a title but no number which caused the title to print too far to the left.

This commit is contained in:
John Jenko 2015-02-12 16:13:10 +00:00
parent 5cd3f11451
commit d5eca11786

View File

@ -2345,7 +2345,11 @@ namespace Volian.Print.Library
if (itemInfo.IsFootnote) itemInfo.MyTab = null; 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; float localXOffset = XOffset;
bool doprint = true; bool doprint = true;