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:
parent
2c5ee66398
commit
ce099ed78e
@ -308,7 +308,13 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
// Adjust RO display
|
||||
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:
|
||||
if (colorLinks)
|
||||
text = DoColorLinks(text);
|
||||
|
Loading…
x
Reference in New Issue
Block a user