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:
parent
45d438cd13
commit
ecc80c00a5
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue