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:
parent
f9cfd31351
commit
4702e279b9
|
@ -1145,10 +1145,11 @@ std::vector<SHAPE*> 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;
|
||||
|
|
Loading…
Reference in New Issue