pcbnew: Initialize DRAWSEGMENT to default width

The check against S_POLYGON was always false because we set the default
type to S_SEGMENT.  This unifies the magic numbers to the board design
settings file
This commit is contained in:
Seth Hillbrand 2018-10-07 15:11:11 -07:00
parent 45d438cd13
commit ecc80c00a5
1 changed files with 1 additions and 2 deletions

View File

@ -56,8 +56,7 @@ DRAWSEGMENT::DRAWSEGMENT( BOARD_ITEM* aParent, KICAD_T idtype ) :
m_Angle = 0;
m_Flags = 0;
m_Shape = S_SEGMENT;
// Gives a decent pen size to draw shape:
m_Width = m_Shape == S_POLYGON ? 0 : Millimeter2iu( 0.15 );
m_Width = Millimeter2iu( DEFAULT_LINE_WIDTH );
}