Pcbnew: enhancement: graphic polygon: display the points count, instead of length.
Previously, the meaningless length (always 0) was displayed.
This commit is contained in:
parent
2b920ffa04
commit
fa200f3d39
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue