parsing problem was unbalanced (smoothing) element
This commit is contained in:
parent
1f50b2c767
commit
5d415c4c4b
|
@ -1037,13 +1037,14 @@ void PCB_IO::format( ZONE_CONTAINER* aZone, int aNestLevel ) const
|
||||||
if( aZone->GetFillMode() )
|
if( aZone->GetFillMode() )
|
||||||
m_out->Print( 0, " (mode polygon)" );
|
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(),
|
aZone->GetArcSegCount(),
|
||||||
FMT_IU( aZone->GetThermalReliefGap() ).c_str(),
|
FMT_IU( aZone->GetThermalReliefGap() ).c_str(),
|
||||||
FMT_IU( aZone->GetThermalReliefCopperBridge() ).c_str() );
|
FMT_IU( aZone->GetThermalReliefCopperBridge() ).c_str() );
|
||||||
|
|
||||||
if( aZone->GetCornerSmoothingType() != ZONE_SETTINGS::SMOOTHING_NONE )
|
if( aZone->GetCornerSmoothingType() != ZONE_SETTINGS::SMOOTHING_NONE )
|
||||||
{
|
{
|
||||||
|
m_out->Print( 0, "\n" );
|
||||||
m_out->Print( aNestLevel+1, "(smoothing" );
|
m_out->Print( aNestLevel+1, "(smoothing" );
|
||||||
|
|
||||||
switch( aZone->GetCornerSmoothingType() )
|
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" ),
|
THROW_IO_ERROR( wxString::Format( _( "unknown zone corner smoothing type %d" ),
|
||||||
aZone->GetCornerSmoothingType() ) );
|
aZone->GetCornerSmoothingType() ) );
|
||||||
}
|
}
|
||||||
|
m_out->Print( 0, ")" );
|
||||||
|
|
||||||
if( aZone->GetCornerRadius() != 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() );
|
FMT_IU( aZone->GetCornerRadius() ).c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue