diff --git a/PROMS/XYPlots/XYPlots.cs b/PROMS/XYPlots/XYPlots.cs index d559e414..fc6b417b 100644 --- a/PROMS/XYPlots/XYPlots.cs +++ b/PROMS/XYPlots/XYPlots.cs @@ -392,7 +392,10 @@ namespace XYPlots string[] xystr = NextPiece().Split(sepchar); x = double.Parse(xystr[0]); char[] trimEndDot = { '.' }; // Wolf Creek OFN SB-008, figure 3 had a string like 50.0. so trim the ending '.' - y = double.Parse(xystr[1].Trim(trimEndDot)); + string ystr = xystr[1]; + if (ystr.EndsWith(".0")) // bug fix B2012-169, the Trim converted a ".75" value to a "75.0" value + ystr = ystr.Trim(trimEndDot); + y = double.Parse(ystr); if (doLOG10[flag, X]) retval.xyValue[X] = (int)(Offset[flag, X] + Scale[flag, X] * Math.Log10(x) + .5); else