Corrected drawing of zone outlines.

This commit is contained in:
Maciej Suminski 2013-12-06 11:25:23 +01:00
parent afe2bbaca7
commit b8b96f77a2
1 changed files with 8 additions and 4 deletions

View File

@ -756,11 +756,15 @@ void PCB_PAINTER::draw( const ZONE_CONTAINER* aZone )
for( int i = 0; i < outline->GetCornersCount(); ++i )
{
corners.push_back( VECTOR2D( outline->GetPos( i ) ) );
}
if( outline->IsEndContour( i ) )
{
// The last point for closing the polyline
corners.push_back( VECTOR2D( outline->GetPos( 0 ) ) );
corners.push_back( corners[0] );
m_gal->DrawPolyline( corners );
corners.clear();
}
}
// Draw the filling
if( displayMode != PCB_RENDER_SETTINGS::DZ_HIDE_FILLED )