B2018-057 Save and Restore Hyphens rather than non-breaking hyphens which appear as small squares on the Procedure Specific Information Dialog.

This commit is contained in:
Rich 2018-04-03 14:31:33 +00:00
parent 08c394f5e8
commit 079f03284d

View File

@ -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")