diff --git a/agrolib/interpolation/interpolation.cpp b/agrolib/interpolation/interpolation.cpp index 5e62d0a80..02e4cae0c 100644 --- a/agrolib/interpolation/interpolation.cpp +++ b/agrolib/interpolation/interpolation.cpp @@ -2174,7 +2174,14 @@ bool getMultipleDetrendingValues(Crit3DInterpolationSettings mySettings, const s if (getProxyPragaName(mySettings.getProxy(i)->getName()) == proxyHeight && myCombination.isProxyActive(i) && myCombination.isProxySignificant(i)) { elevationPos = i; - activeProxyValues.push_back(allProxyValues[i]); + + if (allProxyValues[i] == NODATA) + { + myFunc.erase(myFunc.begin()); + myParameters.erase(myParameters.begin()); + } + else + activeProxyValues.push_back(allProxyValues[i]); } }