Permalink
Browse files

Show total route length in rollover tooltip.

  • Loading branch information...
JesperWe committed Jun 17, 2012
1 parent 7a0d88d commit 0e881387555c696fdca304b016c48a9fcbd7a285
Showing with 7 additions and 1 deletion.
  1. +7 −1 src/chcanv.cpp
View
@@ -4249,11 +4249,17 @@ void ChartCanvas::OnRouteLegPopupTimerEvent( wxTimerEvent& event )
DistanceBearingMercator( segShow_point_b->m_lat, segShow_point_b->m_lon,
segShow_point_a->m_lat, segShow_point_a->m_lon, &brg, &dist );
wxString totLen;
totLen.Printf(_T("%5.1f"), pr->m_route_length);
s.Append( _("Route: ") );
if( pr->m_RouteNameString.IsEmpty() ) s.Append( _("(unnamed)") );
else
s.Append( pr->m_RouteNameString );
s.Append( _("\n") );
s.Append( _T("\n") );
s.Append( _("Total Lenght: ") );
s.Append( totLen );
s.Append( _T("\n") );
s.Append( _("Leg: from ") );
s.Append( segShow_point_a->GetName() );
s.Append( _(" to ") );

0 comments on commit 0e88138

Please sign in to comment.