From 1201ab5cac4fe2b8df8b5130956cc652f7e42b54 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Mon, 10 May 2021 21:06:17 -0400 Subject: [PATCH] Clarify track segment length vs net length in message panel Fixes https://gitlab.com/kicad/code/kicad/-/issues/8396 --- pcbnew/track.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcbnew/track.cpp b/pcbnew/track.cpp index 342977a832..dfb62d4428 100644 --- a/pcbnew/track.cpp +++ b/pcbnew/track.cpp @@ -672,8 +672,10 @@ void TRACK::GetMsgPanelInfo( EDA_DRAW_FRAME* aFrame, std::vector 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 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 ) {