Added logic to handle cases when and RO value contains an X/Y Plot but with text before the plot language

fixed bad indexes - inserting the superscript On/Off commands
This commit is contained in:
2013-04-23 15:42:02 +00:00
parent fb4fbeefc4
commit 3dfb222834
2 changed files with 14 additions and 2 deletions

View File

@@ -915,7 +915,7 @@ namespace XYPlots
private int addpower(int i)
{
int tlen;
powerstring = string.Format("x10{0}{1}{2}", SuperScript[1], i.ToString(), SuperScript[2]);
powerstring = string.Format("x10{0}{1}{2}", SuperScript[0], i.ToString(), SuperScript[1]);
valuestring = valuestring + powerstring;
tlen = SuperScript[0].Length + SuperScript[1].Length;
return (powerstring.Length - tlen);