Do not use default board solder mask clearance in footprint editor.
The footprint editor was displaying the default solder mask clearance defined by the temporary BOARD object created a start up. Change the temporary BOARD default solder mask to 0 so the pad or footprint solder mask clearance setting is displayed when editing the footprint. fixes lp:1653980 https://bugs.launchpad.net/kicad/+bug/1653980
This commit is contained in:
parent
fef40c96e2
commit
56fbfeeb4a
|
@ -238,7 +238,11 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
|
||||||
// (it depends on the actual board)
|
// (it depends on the actual board)
|
||||||
// So we do not show the default clearance, by setting it to 0
|
// So we do not show the default clearance, by setting it to 0
|
||||||
// The footprint or pad specific clearance will be shown
|
// The footprint or pad specific clearance will be shown
|
||||||
GetBoard()->GetDesignSettings().GetDefault()->SetClearance(0);
|
GetBoard()->GetDesignSettings().GetDefault()->SetClearance( 0 );
|
||||||
|
|
||||||
|
// Don't show the default board solder mask clearance in the footprint editor. Only the
|
||||||
|
// footprint or pad clearance setting should be shown if it is not 0.
|
||||||
|
GetBoard()->GetDesignSettings().m_SolderMaskMargin = 0;
|
||||||
|
|
||||||
// restore the last footprint from the project, if any
|
// restore the last footprint from the project, if any
|
||||||
restoreLastFootprint();
|
restoreLastFootprint();
|
||||||
|
@ -562,6 +566,7 @@ void FOOTPRINT_EDIT_FRAME::OnUpdateVerticalToolbar( wxUpdateUIEvent& aEvent )
|
||||||
aEvent.Check( GetToolId() == aEvent.GetId() );
|
aEvent.Check( GetToolId() == aEvent.GetId() );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void FOOTPRINT_EDIT_FRAME::OnUpdateOptionsToolbar( wxUpdateUIEvent& aEvent )
|
void FOOTPRINT_EDIT_FRAME::OnUpdateOptionsToolbar( wxUpdateUIEvent& aEvent )
|
||||||
{
|
{
|
||||||
int id = aEvent.GetId();
|
int id = aEvent.GetId();
|
||||||
|
|
Loading…
Reference in New Issue