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:
parent
08c394f5e8
commit
079f03284d
@ -62,7 +62,8 @@ namespace VEPROMS
|
|||||||
tb.BorderStyle = BorderStyle.FixedSingle;
|
tb.BorderStyle = BorderStyle.FixedSingle;
|
||||||
tb.Enter += new System.EventHandler(this.FieldStepRTB_Enter);
|
tb.Enter += new System.EventHandler(this.FieldStepRTB_Enter);
|
||||||
// see if config has data for this field, i.e. search for the 'name'
|
// 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);
|
DisplayText dt = new DisplayText(val, new VE_Font("Arial", 10, E_Style.None, 12), false);
|
||||||
StringBuilder sb = new StringBuilder();
|
StringBuilder sb = new StringBuilder();
|
||||||
sb.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 Arial;}");
|
sb.Append(@"{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset2 Arial;}");
|
||||||
@ -137,7 +138,8 @@ namespace VEPROMS
|
|||||||
if (oldval != newval)
|
if (oldval != newval)
|
||||||
{
|
{
|
||||||
isDirty = true;
|
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")
|
else if (fld.type.ToLower() == "logical")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user