fix bug with mode of 1st instruction

This commit is contained in:
Emil Tin 2014-08-19 14:51:48 +02:00
parent c37c8dc21d
commit 2780ff31b5

View File

@ -80,8 +80,11 @@ void DescriptionFactory::AppendSegment(const FixedPointCoordinate &coordinate,
//in which case we dont' add a new description, but instead update the existing one //in which case we dont' add a new description, but instead update the existing one
if ((1 == path_description.size()) && (path_description.front().location == coordinate)) if ((1 == path_description.size()) && (path_description.front().location == coordinate))
{ {
path_description.front().name_id = path_point.name_id; if (path_point.segment_duration>0)
path_description.front().travel_mode = path_point.travel_mode; {
path_description.front().name_id = path_point.name_id;
path_description.front().travel_mode = path_point.travel_mode;
}
return; return;
} }