Skip to content
Snippets Groups Projects
Commit 80e335e1 authored by Norihiro Watanabe's avatar Norihiro Watanabe
Browse files

fix a bug that zero distance was not accepted

parent def34d1c
No related branches found
No related tags found
No related merge requests found
......@@ -60,7 +60,7 @@ MathLib::PiecewiseLinearInterpolation LinearInterpolationAlongPolyline::createIn
double LinearInterpolationAlongPolyline::operator()(const GeoLib::Point& pnt) const
{
const double dist = _ply.getDistanceAlongPolyline(pnt, _search_length);
return dist>0 ? _interpolation.getValue(dist) : _default_value;
return dist>=0 ? _interpolation.getValue(dist) : _default_value;
}
} // NumLib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment