From 626c39b62ecf6032519b96148147d9d1f3dccde6 Mon Sep 17 00:00:00 2001 From: Jonathan Bosson Date: Thu, 13 Apr 2017 16:59:34 -0600 Subject: [PATCH] fix number of iterations --- modules/touch/ext/levmarq.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/touch/ext/levmarq.cpp b/modules/touch/ext/levmarq.cpp index 50fb947047..34c8c0a460 100644 --- a/modules/touch/ext/levmarq.cpp +++ b/modules/touch/ext/levmarq.cpp @@ -155,7 +155,7 @@ int levmarq(int npar, double *par, int ny, double *y, double *dysq, delete[] delta; delete[] newpar; - return it; + return (it+1); }