For Westinghouse’s single column format, fix logic around a format flag that determined substep levels based on section and subsection numbers.

This commit is contained in:
John Jenko 2016-03-11 15:21:04 +00:00
parent 289b751a41
commit 41ca9d6958

View File

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