Fix to remove the ‘>’ character at the end of the plot definition which was preventing the plot from being generated. (B2012-186)

This commit is contained in:
John Jenko 2012-09-28 14:46:04 +00:00
parent 5beff6cd48
commit 42b94eac97

View File

@ -479,6 +479,8 @@ namespace XYPlots
} }
else if (Buff.EndsWith(">>")) // doesn't end with return chars... else if (Buff.EndsWith(">>")) // doesn't end with return chars...
Buff = Buff.Substring(0, Buff.Length - 2) + " \r\n\0x00"; // needs to end with null Buff = Buff.Substring(0, Buff.Length - 2) + " \r\n\0x00"; // needs to end with null
else if (Buff.EndsWith(">")) // doesn't end with return chars...
Buff = Buff.Substring(0, Buff.Length - 1) + " \r\n\0x00"; // needs to end with null
} }
private void CloseGraph() private void CloseGraph()
{ {