From 4141a250fe36f78e4cee281a1e69e63a43b7639f Mon Sep 17 00:00:00 2001 From: unknown Date: Sun, 15 Nov 2015 18:53:26 +0100 Subject: [PATCH] Eagle plugin: remve a non-static initializer. --- pcbnew/eagle_plugin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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)