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.
This commit is contained in:
Jeff Young 2020-10-04 11:13:32 +01:00
parent f9cfd31351
commit 4702e279b9
1 changed files with 3 additions and 2 deletions

View File

@ -1145,10 +1145,11 @@ std::vector<SHAPE*> DRAWSEGMENT::MakeEffectiveShapes() const
{ {
effectiveShapes.emplace_back( new SHAPE_SIMPLE( l ) ); effectiveShapes.emplace_back( new SHAPE_SIMPLE( l ) );
} }
else
if( !IsPolygonFilled() || m_Width > 0 )
{ {
for( int i = 0; i < l.SegmentCount(); i++ ) 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; break;