Browse Source

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.
6.0.7
Jeff Young 5 years ago
parent
commit
4702e279b9
  1. 5
      pcbnew/class_drawsegment.cpp

5
pcbnew/class_drawsegment.cpp

@ -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…
Cancel
Save