Skip to content

Commit

Permalink
add start time to exported route
Browse files Browse the repository at this point in the history
  • Loading branch information
seandepagnier committed Aug 24, 2018
1 parent 2ed513e commit a8fa7c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/WeatherRouting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2037,12 +2037,13 @@ void WeatherRouting::Export(RouteMapOverlay &routemapoverlay)
return;
}

PlugIn_Track* newTrack = new PlugIn_Track;
newTrack->m_NameString = _("Weather Route");

// XXX double check time is really end time, not start time off by one.
RouteMapConfiguration c = routemapoverlay.GetConfiguration();

PlugIn_Track* newTrack = new PlugIn_Track;
newTrack->m_NameString = _("Weather Route") + " (" + c.Start + ")";


for(std::list<PlotData>::iterator it = plotdata.begin(); it != plotdata.end(); it++) {
PlugIn_Waypoint* newPoint = new PlugIn_Waypoint
((*it).lat, heading_resolve((*it).lon), _T("circle"), _("Weather Route Point"));
Expand Down

0 comments on commit a8fa7c4

Please sign in to comment.