From 7e1514d165cd7fcc55c83d9a95719ea653aad53f Mon Sep 17 00:00:00 2001 From: Jonathan Bosson Date: Tue, 16 May 2017 17:14:19 -0600 Subject: [PATCH] fix printed name on data --- modules/touch/ext/levmarq.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/touch/ext/levmarq.cpp b/modules/touch/ext/levmarq.cpp index 58e30d9ccd..82bbd0a85a 100644 --- a/modules/touch/ext/levmarq.cpp +++ b/modules/touch/ext/levmarq.cpp @@ -103,7 +103,8 @@ bool levmarq(int npar, double *par, int ny, double *dysq, int k = 1; for (int i = 0; i < ny; ++i) { for (int j = 0; j < 2; ++j) { - ps << "pos" << i << j; + std::string s = (j == 0) ? "x" : "y"; + ps << "p" << i << s; if (j + 1 < ny) { ps << ","; }