Made various fixes found during demo preparation

B2015-092: If numbered HLS, don’t put a ‘.’ between HLS and sub-step number;  null reference check when accessing rofst if none associated with docversion.
This commit is contained in:
Kathy Ruffing 2015-07-07 15:32:49 +00:00
parent a17ea54db0
commit e2aded8ce4
3 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

View File

@ -700,6 +700,7 @@ namespace VEPROMS.CSLA.Library
}
public void UpdateROText()
{
if (this.MyDocVersion.DocVersionAssociationCount == 0) return;
ROFstInfo rofstinfo = this.MyDocVersion.DocVersionAssociations[0].MyROFst;
ROFSTLookup lookup = rofstinfo.GetROFSTLookup(this.MyDocVersion);
lookup.MyDocVersionInfo = this.MyDocVersion;
@ -3416,7 +3417,7 @@ namespace VEPROMS.CSLA.Library
parentTab = myparent.MyTab.CleanText.Trim();
if (((MyDocStyle.StructureStyle.Style & E_DocStructStyle.DSS_AddDotZeroStdHLS) == E_DocStructStyle.DSS_AddDotZeroStdHLS) && myparent.MyContent.Type == 20002)
parentTab = parentTab.Replace(".0", ""); // this was added in, remove for substeps.
tbformat = parentTab + (parentTab.EndsWith(".") ? "" : ".") + tbformat.TrimStart();
tbformat = parentTab + (parentTab.EndsWith(".") ? "" : parentTab=="" ? "" : ".") + tbformat.TrimStart();
}
else if (IsSequential && ActiveFormat.PlantFormat.FormatData.SectData.StepSectionData.SkipNonSeqTabWithPar)
{