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); }