More work on CPOLYGONS_LIST class.

Pcbnew: fix minor bug about  plot line width.
This commit is contained in:
jean-pierre charras
2013-05-09 21:08:12 +02:00
parent cf86e18f5c
commit 2554575656
23 changed files with 182 additions and 155 deletions
+3 -3
View File
@@ -2614,11 +2614,11 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER() throw( IO_ERROR, PARSE_ERROR )
for( token = NextTok(); token != T_RIGHT; token = NextTok() )
{
pts.push_back( CPolyPt( parseXY() ) );
pts.Append( CPolyPt( parseXY() ) );
}
NeedRIGHT();
pts.back().end_contour = true;
pts.CloseLastContour();
}
break;
@@ -2665,7 +2665,7 @@ ZONE_CONTAINER* PCB_PARSER::parseZONE_CONTAINER() throw( IO_ERROR, PARSE_ERROR )
zone->Outline()->SetHatch( hatchStyle, hatchPitch, true );
}
if( pts.size() )
if( pts.GetCornersCount() )
zone->AddFilledPolysList( pts );
// Ensure keepout does not have a net (which have no sense for a keepout zone)