This commit is contained in:
Kathy Ruffing 2013-06-10 16:37:48 +00:00
parent 05f3fcf8a4
commit 3a7ca33416

View File

@ -4657,6 +4657,7 @@ namespace VEPROMS.CSLA.Library
string tmpstr = indx+1<DisplayNumber.Length?DisplayNumber.Substring(indx+1):null; string tmpstr = indx+1<DisplayNumber.Length?DisplayNumber.Substring(indx+1):null;
// if the section's tab is a letter, we don't want a 0 on the section.... for example A.0. // if the section's tab is a letter, we don't want a 0 on the section.... for example A.0.
if (IsSection && tmpstr == null && System.Char.IsLetter(DisplayNumber, 0)) return -1; if (IsSection && tmpstr == null && System.Char.IsLetter(DisplayNumber, 0)) return -1;
if (tmpstr.IndexOf('-') >= 0) return -1;
return tmpstr==null?0:System.Convert.ToInt32(tmpstr); return tmpstr==null?0:System.Convert.ToInt32(tmpstr);
} }
return (-1); return (-1);