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:
jjenko committed 2013-04-23 15:42:02 +00:00
1 parent fb4fbeefc4
commit 3dfb222834
2 files changed
+14 -2

No files matched your search

+1 -1
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);