From 079f03284d41a597c7a6ec9a0b33d322f27656be Mon Sep 17 00:00:00 2001 From: Rich Date: Tue, 3 Apr 2018 14:31:33 +0000 Subject: [PATCH] B2018-057 Save and Restore Hyphens rather than non-breaking hyphens which appear as small squares on the Procedure Specific Information Dialog. --- PROMS/VEPROMS User Interface/frmPSI.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS User Interface/frmPSI.cs b/PROMS/VEPROMS User Interface/frmPSI.cs index 6b4c914c..2eb5cc65 100644 --- a/PROMS/VEPROMS User Interface/frmPSI.cs +++ b/PROMS/VEPROMS User Interface/frmPSI.cs @@ -62,7 +62,8 @@ namespace VEPROMS tb.BorderStyle = BorderStyle.FixedSingle; tb.Enter += new System.EventHandler(this.FieldStepRTB_Enter); // see if config has data for this field, i.e. search for the 'name' - string val = procConfig.GetValue("PSI", fld.name); + // B2018-057 Replace non-breaking hyphen with hyphen. + string val = procConfig.GetValue("PSI", fld.name).Replace("\\u8209?", "-"); DisplayText dt = new DisplayText(val, new VE_Font("Arial", 10, E_Style.None, 12), false); StringBuilder sb = new StringBuilder(); sb.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 Arial;}"); @@ -137,7 +138,8 @@ namespace VEPROMS if (oldval != newval) { isDirty = true; - procConfig.SetValue("PSI", fld.name, newval); + // B2018-057 Replace non-breaking hyphen with hyphen. + procConfig.SetValue("PSI", fld.name, newval.Replace("\\u8209?","-")); } } else if (fld.type.ToLower() == "logical")