B2017-012 - RO XYPlots had been impacted by logic which was turning spaces into hard spaces. This, in turn, stopped the XY Plot logic from working.

This commit is contained in:
Rich 2017-01-19 21:55:33 +00:00
parent 19971f3301
commit 231849ace4

View File

@ -960,14 +960,17 @@ namespace VEPROMS.CSLA.Library
if( str == null || str == "" ) return str;
string rtnstr = str;
int indx = -1;
while ((indx = rtnstr.ToUpper().IndexOf("@HSP("))>-1)
while ((indx = rtnstr.ToUpper().IndexOf("@HSP(")) > -1)
{
string resstr = rtnstr.Substring(0,indx);
int endHsp = rtnstr.IndexOf(")",indx);
string tmpstr = rtnstr.Substring(indx+5,endHsp-indx-5);
tmpstr = tmpstr.Replace(" ", @"\u160?");
string resstr = rtnstr.Substring(0, indx);
int endHsp = rtnstr.IndexOf(")", indx);
string tmpstr = rtnstr.Substring(indx + 5, endHsp - indx - 5);
if (!tmpstr.Contains("<<G")) // B2017-012 Don't ccovert space to hardspaces for XY Plots.
tmpstr = tmpstr.Replace(" ", @"\u160?");
else
Console.WriteLine(tmpstr);
resstr = resstr + tmpstr;
rtnstr = resstr + rtnstr.Substring(endHsp+1);
rtnstr = resstr + rtnstr.Substring(endHsp + 1);
}
return rtnstr;
}