B2019-073 Corrected the ReplaceWords logic so that if it was turned off in for tables, it will also keep it turned off if the table is in an RNO or RNO part

This commit is contained in:
John Jenko 2019-05-13 19:49:36 +00:00
parent da69106c87
commit bf3983e953

View File

@ -2052,6 +2052,14 @@ namespace VEPROMS.CSLA.Library
else if (_MyItemInfo.IsInRNO && (myFlag & E_ReplaceFlags.RNO) > 0)
{
replaceit = true;
// B2019-073 if there is table, caution, or note in an RNO and ReplaceWords is turn off
// for those step types, set replaceit to false.
if (_MyItemInfo.IsTable)
replaceit = ((myFlag & E_ReplaceFlags.Table) > 0);
else if (_MyItemInfo.IsCaution)
replaceit = ((myFlag & E_ReplaceFlags.Caution) > 0);
else if (_MyItemInfo.IsNote)
replaceit = ((myFlag & E_ReplaceFlags.Note) > 0);
}
else if (_MyItemInfo.IsCaution && (myFlag & E_ReplaceFlags.Caution) > 0)
{