Adjustments needed to support McGuire, Catawba, and Shearon Harris formats.

This commit is contained in:
2013-12-13 04:02:32 +00:00
parent bea71aac2b
commit 7a29757f87
2 changed files with 30 additions and 8 deletions

View File

@@ -193,7 +193,8 @@ namespace Volian.Print.Library
if (removedUnderline)
{
int sep = origTab.IndexOfAny(". ".ToCharArray());
origTab = @"\ul " + origTab.Substring(0, sep-1) + @"\ulnone" + origTab.Substring(sep-1);
//origTab = @"\ul " + origTab.Substring(0, sep-1) + @"\ulnone" + origTab.Substring(sep-1);
origTab = @"\ul " + origTab.Substring(0, sep) + @"\ulnone" + origTab.Substring(sep);
}
UnderlineTerminateList utl = myparent.MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.UnderlineTerminateList;
@@ -211,7 +212,7 @@ namespace Volian.Print.Library
int indxC = origTab.IndexOf(":");
origTab = @"\ul " + origTab.Substring(0, indxC) + @"\ulnone" + origTab.Substring(indxC);
}
else if (utl != null && ((vFont.Style & E_Style.Underline) > 0))
else if (utl != null && utl.Count > 0 && ((vFont.Style & E_Style.Underline) > 0))
{
foreach (UnderlineTerminate ut in utl)
{