From a4f22b4d8c856150616dc3ef1ffb73156b2857fb Mon Sep 17 00:00:00 2001 From: Mark Liversedge Date: Mon, 28 Apr 2014 20:12:07 +0100 Subject: [PATCH] Fix cp2-20 to not use t0 ! --- src/CPPlot.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CPPlot.cpp b/src/CPPlot.cpp index 89adcb363..f3ff2c40d 100644 --- a/src/CPPlot.cpp +++ b/src/CPPlot.cpp @@ -413,6 +413,9 @@ CPPlot::plotModel() // ooopsie no model for us! if (cp == 0 && tau == 0 && t0 == 0) return; + // clear t0 if doing a classic 2 point curve + if (model == 1) t0 = 0; + // populate curve data with a CP curve const int curve_points = 100; double tmin = model == 2 ? 1.00/60.00 : tau; // we want to see the entire curve for 3 model