diff --git a/pcbnew/eagle_plugin.cpp b/pcbnew/eagle_plugin.cpp index 2448b3e345..317fd24265 100644 --- a/pcbnew/eagle_plugin.cpp +++ b/pcbnew/eagle_plugin.cpp @@ -797,7 +797,7 @@ struct EPOLYGON HATCH, CUTOUT, }; - int pour = EPOLYGON::SOLID; + int pour; opt_double isolate; opt_bool orphans; opt_bool thermals; @@ -827,8 +827,10 @@ EPOLYGON::EPOLYGON( CPTREE& aPolygon ) layer = attribs.get( "layer" ); spacing = attribs.get_optional( "spacing" ); isolate = attribs.get_optional( "isolate" ); - + // default pour to solid fill + pour = EPOLYGON::SOLID; opt_string s = attribs.get_optional( "pour" ); + if( s ) { // (solid | hatch | cutout)