Skip to content

Commit

Permalink
UpdateRoutePositionDialog reset m_positionOnRoute first, referenced r…
Browse files Browse the repository at this point in the history
…oute may have been deleted
  • Loading branch information
did-g committed Sep 28, 2018
1 parent 3a8c7bc commit fe54440
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/WeatherRouting.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,8 @@ void WeatherRouting::UpdateRoutePositionDialog()
RoutePositionDialog &dlg = m_RoutePositionDialog;
if(!dlg.IsShown())
return;


m_positionOnRoute = NULL;
std::list<RouteMapOverlay*> currentroutemaps = CurrentRouteMaps();
if(currentroutemaps.size() != 1) {
RoutePositionDialogMessage(dlg, _("Select exactly 1 configuration"));
Expand Down

0 comments on commit fe54440

Please sign in to comment.