Pcbnew: enhancement: graphic polygon: display the points count, instead of length.

Previously, the meaningless length (always 0) was displayed.
This commit is contained in:
jean-pierre charras 2019-12-17 08:40:44 +01:00
parent 2b920ffa04
commit fa200f3d39
1 changed files with 7 additions and 0 deletions

View File

@ -481,6 +481,13 @@ void DRAWSEGMENT::GetMsgPanelInfo( EDA_UNITS_T aUnits, std::vector< MSG_PANEL_IT
aList.emplace_back( _( "Length" ), msg, DARKGREEN );
break;
case S_POLYGON:
aList.emplace_back( shape, _( "Polygon" ), RED );
msg.Printf( "%d", GetPolyShape().Outline(0).PointCount() );
aList.emplace_back( _( "Points" ), msg, DARKGREEN );
break;
default:
{
aList.emplace_back( shape, _( "Segment" ), RED );