Clarify track segment length vs net length in message panel

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8396
This commit is contained in:
Jon Evans 2021-05-10 21:06:17 -04:00
parent ce01a28aad
commit 1201ab5cac

View File

@ -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( _( "Radius" ), MessageTextFromValue( units, radius ) );
} }
aList.emplace_back( _( "Segment Length" ), MessageTextFromValue( units, GetLength() ) );
// Display full track length (in Pcbnew) // Display full track length (in Pcbnew)
if( board ) if( board && GetNetCode() > 0 )
{ {
int count; int count;
double trackLen; 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 ); 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 ) if( lenPadToDie != 0 )
{ {