Commit b8b96f77 authored by Maciej Suminski's avatar Maciej Suminski

Corrected drawing of zone outlines.

parent afe2bbac
...@@ -756,11 +756,15 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone ) ...@@ -756,11 +756,15 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone )
for( int i = 0; i < outline->GetCornersCount(); ++i ) for( int i = 0; i < outline->GetCornersCount(); ++i )
{ {
corners.push_back( VECTOR2D( outline->GetPos( i ) ) ); corners.push_back( VECTOR2D( outline->GetPos( i ) ) );
if( outline->IsEndContour( i ) )
{
// The last point for closing the polyline
corners.push_back( corners[0] );
m_gal->DrawPolyline( corners );
corners.clear();
}
} }
// The last point for closing the polyline
corners.push_back( VECTOR2D( outline->GetPos( 0 ) ) );
m_gal->DrawPolyline( corners );
corners.clear();
// Draw the filling // Draw the filling
if( displayMode != PCB_RENDER_SETTINGS::DZ_HIDE_FILLED ) if( displayMode != PCB_RENDER_SETTINGS::DZ_HIDE_FILLED )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment