From 69415616f8dcffab8d418509d20653e76c6daa1c Mon Sep 17 00:00:00 2001 From: Dick Hollenbeck Date: Mon, 18 Jun 2012 23:08:00 -0500 Subject: [PATCH] parsing problem was unbalanced (smoothing) element --- pcbnew/kicad_plugin.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcbnew/kicad_plugin.cpp b/pcbnew/kicad_plugin.cpp index c6c7051ca1..9ac2d720b1 100644 --- a/pcbnew/kicad_plugin.cpp +++ b/pcbnew/kicad_plugin.cpp @@ -1037,13 +1037,14 @@ void PCB_IO::format( ZONE_CONTAINER* aZone, int aNestLevel ) const if( aZone->GetFillMode() ) m_out->Print( 0, " (mode polygon)" ); - m_out->Print( 0, " (arc_segments %d) (thermal_gap %s) (thermal_bridge_width %s)\n", + m_out->Print( 0, " (arc_segments %d) (thermal_gap %s) (thermal_bridge_width %s)", aZone->GetArcSegCount(), FMT_IU( aZone->GetThermalReliefGap() ).c_str(), FMT_IU( aZone->GetThermalReliefCopperBridge() ).c_str() ); if( aZone->GetCornerSmoothingType() != ZONE_SETTINGS::SMOOTHING_NONE ) { + m_out->Print( 0, "\n" ); m_out->Print( aNestLevel+1, "(smoothing" ); switch( aZone->GetCornerSmoothingType() ) @@ -1060,9 +1061,10 @@ void PCB_IO::format( ZONE_CONTAINER* aZone, int aNestLevel ) const THROW_IO_ERROR( wxString::Format( _( "unknown zone corner smoothing type %d" ), aZone->GetCornerSmoothingType() ) ); } + m_out->Print( 0, ")" ); if( aZone->GetCornerRadius() != 0 ) - m_out->Print( aNestLevel+1, " (radius %s))\n", + m_out->Print( 0, " (radius %s)", FMT_IU( aZone->GetCornerRadius() ).c_str() ); }