Fix board file formatting bug.
The roundrect_rratio token was missing a leading space which made the file formatting different from all other formatting when using rounded rectangle pads. Fixes lp:1768355 https://bugs.launchpad.net/kicad/+bug/1768355
This commit is contained in:
parent
a2448cf4a5
commit
7c7a6ea979
|
@ -1349,7 +1349,7 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const
|
|||
// Output the radius ratio for rounded rect pads
|
||||
if( aPad->GetShape() == PAD_SHAPE_ROUNDRECT )
|
||||
{
|
||||
m_out->Print( 0, "(roundrect_rratio %s)",
|
||||
m_out->Print( 0, " (roundrect_rratio %s)",
|
||||
Double2Str( aPad->GetRoundRectRadiusRatio() ).c_str() );
|
||||
}
|
||||
|
||||
|
@ -1364,14 +1364,16 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const
|
|||
StrPrintf( &output, " (die_length %s)", FMT_IU( aPad->GetPadToDieLength() ).c_str() );
|
||||
|
||||
if( aPad->GetLocalSolderMaskMargin() != 0 )
|
||||
StrPrintf( &output, " (solder_mask_margin %s)", FMT_IU( aPad->GetLocalSolderMaskMargin() ).c_str() );
|
||||
StrPrintf( &output, " (solder_mask_margin %s)",
|
||||
FMT_IU( aPad->GetLocalSolderMaskMargin() ).c_str() );
|
||||
|
||||
if( aPad->GetLocalSolderPasteMargin() != 0 )
|
||||
StrPrintf( &output, " (solder_paste_margin %s)", FMT_IU( aPad->GetLocalSolderPasteMargin() ).c_str() );
|
||||
StrPrintf( &output, " (solder_paste_margin %s)",
|
||||
FMT_IU( aPad->GetLocalSolderPasteMargin() ).c_str() );
|
||||
|
||||
if( aPad->GetLocalSolderPasteMarginRatio() != 0 )
|
||||
StrPrintf( &output, " (solder_paste_margin_ratio %s)",
|
||||
Double2Str( aPad->GetLocalSolderPasteMarginRatio() ).c_str() );
|
||||
Double2Str( aPad->GetLocalSolderPasteMarginRatio() ).c_str() );
|
||||
|
||||
if( aPad->GetLocalClearance() != 0 )
|
||||
StrPrintf( &output, " (clearance %s)", FMT_IU( aPad->GetLocalClearance() ).c_str() );
|
||||
|
@ -1465,9 +1467,11 @@ void PCB_IO::format( D_PAD* aPad, int aNestLevel ) const
|
|||
for( unsigned ii = 0; ii < poly.size(); ii++ )
|
||||
{
|
||||
if( newLine == 0 )
|
||||
m_out->Print( nested_level+1, " (xy %s)", FMT_IU( wxPoint( poly[ii].x, poly[ii].y ) ).c_str() );
|
||||
m_out->Print( nested_level+1, " (xy %s)",
|
||||
FMT_IU( wxPoint( poly[ii].x, poly[ii].y ) ).c_str() );
|
||||
else
|
||||
m_out->Print( 0, " (xy %s)", FMT_IU( wxPoint( poly[ii].x, poly[ii].y ) ).c_str() );
|
||||
m_out->Print( 0, " (xy %s)",
|
||||
FMT_IU( wxPoint( poly[ii].x, poly[ii].y ) ).c_str() );
|
||||
|
||||
if( ++newLine > 4 )
|
||||
{
|
||||
|
@ -2123,7 +2127,8 @@ void PCB_IO::FootprintSave( const wxString& aLibraryPath, const MODULE* aFootpri
|
|||
}
|
||||
|
||||
|
||||
void PCB_IO::FootprintDelete( const wxString& aLibraryPath, const wxString& aFootprintName, const PROPERTIES* aProperties )
|
||||
void PCB_IO::FootprintDelete( const wxString& aLibraryPath, const wxString& aFootprintName,
|
||||
const PROPERTIES* aProperties )
|
||||
{
|
||||
LOCALE_IO toggle; // toggles on, then off, the C locale.
|
||||
|
||||
|
|
Loading…
Reference in New Issue