Fixed the tab level logic for Westinghouse Attachment sections (single column format)

This commit is contained in:
John Jenko 2016-03-09 16:26:40 +00:00
parent d432a980d7
commit eb39dbf6e5

View File

@ -3769,7 +3769,9 @@ namespace VEPROMS.CSLA.Library
ItemInfo ii = this;
while (!ii.IsProcedure)
{
if (ii.IsSection) level++;
// fix for Westinghouse single column
// - increament the level on a section only if the first character is a number B2016-075 03-09-2016
if (ii.IsSection && (ii.MyTab.Text == null || char.IsNumber(ii.MyTab.Text.Trim()[0]))) level++;
ii = ii.ActiveParent as ItemInfo;
}
return level;