B2017-269 - Logic added to handle new flag BoldTransitionsExceptBoldHLS. This was necessary since different types of high level steps can be both bold and normal.

This commit is contained in:
Rich 2018-01-03 20:06:46 +00:00
parent 2c5ee66398
commit ce099ed78e

View File

@ -308,7 +308,13 @@ namespace VEPROMS.CSLA.Library
} }
// Adjust RO display // Adjust RO display
if (ROsShouldBeAdjusted) if (ROsShouldBeAdjusted)
text = DoTransitionAdjustments(text, _MyItemInfo.ActiveFormat.PlantFormat.FormatData.TransData.BoldTransition || (_MyItemInfo.ActiveFormat.PlantFormat.FormatData.TransData.BoldTransitionExceptHLS && !_MyItemInfo.IsHigh)); {
bool fontIsBold = _MyItemInfo.IsStep && (_MyItemInfo.FormatStepData.Font.Style & E_Style.Bold) != E_Style.Bold;
text = DoTransitionAdjustments(text, _MyItemInfo.ActiveFormat.PlantFormat.FormatData.TransData.BoldTransition ||
(_MyItemInfo.ActiveFormat.PlantFormat.FormatData.TransData.BoldTransitionExceptHLS && !_MyItemInfo.IsHigh) ||
// B2017-269 Don't bold transition if font for step is bold
(_MyItemInfo.ActiveFormat.PlantFormat.FormatData.TransData.BoldTransitionExceptBoldHLS && (!_MyItemInfo.IsHigh || fontIsBold)));
}
// add colors around links: // add colors around links:
if (colorLinks) if (colorLinks)
text = DoColorLinks(text); text = DoColorLinks(text);