mirror of
https://codeberg.org/comaps/comaps
synced 2025-12-23 22:53:43 +00:00
[routing] Remove passed intermediate points when assembling a modified route mid-navigation
Fixes OM #9592 Signed-off-by: Michał Brzozowski <www.haxor@gmail.com> # Conflicts: # libs/map/routing_manager.cpp
This commit is contained in:
committed by
David Gekeler
parent
697e871c1b
commit
57ecf3848b
@@ -546,8 +546,10 @@ void RoutingManager::RemoveRoute(bool deactivateFollowing)
|
||||
es.ClearGroup(UserMark::Type::SPEED_CAM);
|
||||
es.ClearGroup(UserMark::Type::ROAD_WARNING);
|
||||
}
|
||||
if (deactivateFollowing)
|
||||
SetPointsFollowingMode(false /* enabled */);
|
||||
if (deactivateFollowing) {
|
||||
SetPointsFollowingMode(false /* enabled */);
|
||||
RemovePassedPoints();
|
||||
}
|
||||
});
|
||||
|
||||
if (deactivateFollowing)
|
||||
@@ -937,6 +939,13 @@ void RoutingManager::SetPointsFollowingMode(bool enabled)
|
||||
routePoints.SetFollowingMode(enabled);
|
||||
}
|
||||
|
||||
void RoutingManager::RemovePassedPoints()
|
||||
{
|
||||
ASSERT(m_bmManager != nullptr, ());
|
||||
RoutePointsLayout routePoints(*m_bmManager);
|
||||
routePoints.RemovePassedPoints();
|
||||
}
|
||||
|
||||
void RoutingManager::ReorderIntermediatePoints()
|
||||
{
|
||||
vector<RouteMarkPoint *> prevPoints;
|
||||
|
||||
Reference in New Issue
Block a user