From a4a9fb1d473aca083e7ebf0a7e4f1a5b1978c360 Mon Sep 17 00:00:00 2001 From: Kathy Date: Wed, 19 Jul 2017 16:04:08 +0000 Subject: [PATCH] B2017-147: Edit and print displayed back quote rather than degree in some ro values --- PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs index 89a41ef9..41ce280c 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DisplayText.cs @@ -574,6 +574,9 @@ namespace VEPROMS.CSLA.Library if (!_MyItemInfo.ActiveFormat.PlantFormat.FormatData.ROData.AllUnits) prevValue = newvalue1; newvalue = DoROReplaceWords(_MyFormat.PlantFormat.FormatData.SectData.ReplaceStrList, newvalue, _MyItemInfo.IsHigh); if (isSetpoint) newvalue = ReplaceSpaceWithHardspace(newvalue); + // B2017-147: backquotes should be translated to degrees for edit/print: + newvalue = newvalue.Replace("`", @"\'b0"); + if (gg != newvalue) text = text.Substring(0, myIndex) + newvalue + text.Substring(myIndex + myLength); }