clang-format

This commit is contained in:
Lev Dragunov 2018-02-28 17:47:52 +03:00 committed by Patrick Niklaus
parent 7922a6172a
commit ac23e3b223

View File

@ -342,7 +342,8 @@ void trimShortSegments(std::vector<RouteStep> &steps, LegGeometry &geometry)
auto &first_step = steps.front();
auto bearing = first_bearing;
// we changed the geometry, we need to recalculate the bearing
if (geometry.locations[first_step.geometry_begin] != geometry.locations[first_step.geometry_begin + 1])
if (geometry.locations[first_step.geometry_begin] !=
geometry.locations[first_step.geometry_begin + 1])
{
bearing = std::round(util::coordinate_calculation::bearing(
geometry.locations[first_step.geometry_begin],