Skip to content

Commit

Permalink
Fix display of angle when showing the EBL info all the time
Browse files Browse the repository at this point in the history
  • Loading branch information
jongough committed Jan 15, 2017
1 parent 6707f18 commit 2a0a1f1
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/EBL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
WX_DEFINE_LIST ( EBLList );

extern int g_path_line_width;
extern bool g_bShowMag;

extern wxColour g_colourEBLLineColour;
extern wxString g_sEBLEndIconName;
Expand Down Expand Up @@ -445,7 +444,7 @@ void EBL::Draw( ODDC& dc, PlugIn_ViewPort &VP )
ODPoint *pEndPoint = m_pODPointList->GetLast()->GetData();
wxPoint l_Point;
GetCanvasPixLL( &VP, &l_Point, pEndPoint->m_lat, pEndPoint->m_lon);
wxString info = g_ocpn_draw_pi->CreateExtraPathLegInfo(dc, this, 0.0, m_dLength, l_Point);
wxString info = g_ocpn_draw_pi->CreateExtraPathLegInfo(dc, this, m_dEBLAngle, m_dLength, l_Point);
if(info.length() > 0)
g_ocpn_draw_pi->RenderExtraPathLegInfo( dc, l_Point, info );
}
Expand All @@ -462,7 +461,7 @@ void EBL::DrawGL( PlugIn_ViewPort &piVP )
ODPoint *pEndPoint = m_pODPointList->GetLast()->GetData();
wxPoint l_Point;
GetCanvasPixLL( &piVP, &l_Point, pEndPoint->m_lat, pEndPoint->m_lon);
wxString info = g_ocpn_draw_pi->CreateExtraPathLegInfo(dc, this, 0.0, m_dLength, l_Point);
wxString info = g_ocpn_draw_pi->CreateExtraPathLegInfo(dc, this, m_dEBLAngle, m_dLength, l_Point);
if(info.length() > 0)
g_ocpn_draw_pi->RenderExtraPathLegInfo( dc, l_Point, info );
}
Expand Down

0 comments on commit 2a0a1f1

Please sign in to comment.