From 2946d5b6448c3efcd8d768058bf919bdef9275f6 Mon Sep 17 00:00:00 2001 From: John Date: Fri, 5 Oct 2012 15:00:11 +0000 Subject: [PATCH] =?UTF-8?q?B2012-169=20=E2=80=93=20x/y=20plot=20was=20prin?= =?UTF-8?q?ting=20very=20small=20and=20straddled=20the=20top=20of=20the=20?= =?UTF-8?q?page.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- PROMS/XYPlots/XYPlots.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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