Fix typos that would result in fp zone setting written into pads.

This commit is contained in:
Jeff Young 2021-08-08 17:28:43 +01:00
parent e38c366695
commit 54942a1401
2 changed files with 3 additions and 3 deletions

View File

@ -1601,7 +1601,7 @@ bool DIALOG_PAD_PROPERTIES::TransferDataFromWindow()
m_currentPad->SetRoundRectRadiusRatio( m_padMaster->GetRoundRectRadiusRatio() ); m_currentPad->SetRoundRectRadiusRatio( m_padMaster->GetRoundRectRadiusRatio() );
m_currentPad->SetChamferRectRatio( m_padMaster->GetChamferRectRatio() ); m_currentPad->SetChamferRectRatio( m_padMaster->GetChamferRectRatio() );
m_currentPad->SetChamferPositions( m_padMaster->GetChamferPositions() ); m_currentPad->SetChamferPositions( m_padMaster->GetChamferPositions() );
m_currentPad->SetZoneConnection( m_padMaster->GetEffectiveZoneConnection() ); m_currentPad->SetZoneConnection( m_padMaster->GetZoneConnection() );
// rounded rect pads with radius ratio = 0 are in fact rect pads. // rounded rect pads with radius ratio = 0 are in fact rect pads.
// So set the right shape (and perhaps issues with a radius = 0) // So set the right shape (and perhaps issues with a radius = 0)

View File

@ -1562,10 +1562,10 @@ void PCB_IO::format( const PAD* aPad, int aNestLevel ) const
FormatInternalUnits( aPad->GetLocalClearance() ).c_str() ); FormatInternalUnits( aPad->GetLocalClearance() ).c_str() );
} }
if( aPad->GetEffectiveZoneConnection() != ZONE_CONNECTION::INHERITED ) if( aPad->GetZoneConnection() != ZONE_CONNECTION::INHERITED )
{ {
StrPrintf( &output, " (zone_connect %d)", StrPrintf( &output, " (zone_connect %d)",
static_cast<int>( aPad->GetEffectiveZoneConnection() ) ); static_cast<int>( aPad->GetZoneConnection() ) );
} }
if( aPad->GetThermalSpokeWidth() != 0 ) if( aPad->GetThermalSpokeWidth() != 0 )