From 4702e279b94fbcab4ed1810ad89c88e2ae348f78 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Sun, 4 Oct 2020 11:13:32 +0100 Subject: [PATCH] A DRAWSEGMENT can be stroked *and* filled. Make sure its effective shape reflects that. Note also that the strokes need to have the correct width. --- pcbnew/class_drawsegment.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pcbnew/class_drawsegment.cpp b/pcbnew/class_drawsegment.cpp index d66a5dcb84..6eef603555 100644 --- a/pcbnew/class_drawsegment.cpp +++ b/pcbnew/class_drawsegment.cpp @@ -1145,10 +1145,11 @@ std::vector DRAWSEGMENT::MakeEffectiveShapes() const { effectiveShapes.emplace_back( new SHAPE_SIMPLE( l ) ); } - else + + if( !IsPolygonFilled() || m_Width > 0 ) { for( int i = 0; i < l.SegmentCount(); i++ ) - effectiveShapes.emplace_back( new SHAPE_SEGMENT( l.Segment( i ) ) ); + effectiveShapes.emplace_back( new SHAPE_SEGMENT( l.Segment( i ), m_Width ) ); } } break;