From 79288d2b5be791913b71bbb87882e0c24e9d7004 Mon Sep 17 00:00:00 2001 From: Alex Lin Date: Thu, 4 Aug 2016 08:37:27 -0500 Subject: [PATCH] Data products not plotting the last recorded data point #162 Needed to save last point for comparison streams as well. --- trick_source/data_products/DPX/DPC/DPC_std_curve.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/trick_source/data_products/DPX/DPC/DPC_std_curve.cpp b/trick_source/data_products/DPX/DPC/DPC_std_curve.cpp index d441a7cc..284342eb 100644 --- a/trick_source/data_products/DPX/DPC/DPC_std_curve.cpp +++ b/trick_source/data_products/DPX/DPC/DPC_std_curve.cpp @@ -252,12 +252,12 @@ int DPC_std_curve::getXY(double *X_value, double *Y_value) { eos = ! ds[1]->get( &t2, &v2); } } - if (!eos) { - *X_value = v1; - *Y_value = v2; + *X_value = v1; + *Y_value = v2; + if (!eos) { return(1); } - } else { + } else { eos = !ds[0]->get( &t1, &v1); *X_value = time_conversion->eval( t1); *Y_value = v1;