Skip to content

Commit

Permalink
[line_interpolate] Fix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
awulkiew committed Mar 4, 2024
1 parent 88d0076 commit 733fdbb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion include/boost/geometry/algorithms/line_interpolate.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ struct interpolate_range
p,
diff_distance);
Policy::apply(p, pointlike);
if BOOST_GEOMETRY_CONSTEXPR (util::is_multi<PointLike>::value)
if BOOST_GEOMETRY_CONSTEXPR(util::is_point<PointLike>::value)
{
return;
}
else // else prevents unreachable code warning
{
start_p = p;
prev_distance = repeated_distance;
Expand Down

0 comments on commit 733fdbb

Please sign in to comment.