From ecc80c00a59ea7c67807a1eb0e4052761955192d Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sun, 7 Oct 2018 15:11:11 -0700 Subject: [PATCH] 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 --- pcbnew/class_drawsegment.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pcbnew/class_drawsegment.cpp b/pcbnew/class_drawsegment.cpp index d9ba3e6155..7648b3d524 100644 --- a/pcbnew/class_drawsegment.cpp +++ b/pcbnew/class_drawsegment.cpp @@ -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 ); }