B2023-037: Handle <=, >=, +-, -> and <- symbols in ROs.
This commit is contained in:
@@ -693,6 +693,11 @@ namespace VEPROMS.CSLA.Library
|
||||
if (isSetpoint) newvalue = ReplaceSpaceWithHardspace(newvalue);
|
||||
// B2017-147: backquotes should be translated to degrees for edit/print:
|
||||
newvalue = newvalue.Replace("`", @"\'b0");
|
||||
// B2023-037: Handle <=, >=, +-, -> and <- symbols. If the format has flags to convert these RO symbols, it
|
||||
// is done here so that output (print & edit/view) has symbol, not 2 characters.
|
||||
if (_MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.UseDashGreaterLessThenForArrowsInROValue ||
|
||||
_MyItemInfo.ActiveFormat.PlantFormat.FormatData.SectData.ConvertGTELTEPMinROValue)
|
||||
newvalue = ROFSTLookup.ROConvertSymbols(newvalue);
|
||||
|
||||
if (gg != newvalue)
|
||||
text = text.Substring(0, myIndex) + newvalue + text.Substring(myIndex + myLength);
|
||||
|
Reference in New Issue
Block a user