Browse Source

Clarify track segment length vs net length in message panel

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8396
6.0.7
Jon Evans 5 years ago
parent
commit
1201ab5cac
  1. 6
      pcbnew/track.cpp

6
pcbnew/track.cpp

@ -672,8 +672,10 @@ void TRACK::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>
aList.emplace_back( _( "Radius" ), MessageTextFromValue( units, radius ) );
}
aList.emplace_back( _( "Segment Length" ), MessageTextFromValue( units, GetLength() ) );
// Display full track length (in Pcbnew)
if( board )
if( board && GetNetCode() > 0 )
{
int count;
double trackLen;
@ -681,7 +683,7 @@ void TRACK::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector<MSG_PANEL_ITEM>
std::tie( count, trackLen, lenPadToDie ) = board->GetTrackLength( *this );
aList.emplace_back( _( "Length" ), MessageTextFromValue( units, trackLen ) );
aList.emplace_back( _( "Routed Length" ), MessageTextFromValue( units, trackLen ) );
if( lenPadToDie != 0 )
{

Loading…
Cancel
Save