pcbnew: set default soldermask clearance for footprint viewer
The default board soldermask clearance should not be used in the footprint viewer. Setting the board's solder mask margin to 0 will leave the footprint displayed with only the soldermask defined by the pads or the footprint. Thanks to Fabian Inostroza for pointing out the missing line. Fixes: lp:1779979 * https://bugs.launchpad.net/kicad/+bug/1779979
This commit is contained in:
parent
fb3859642f
commit
0ac96d177c
|
@ -167,6 +167,10 @@ FOOTPRINT_VIEWER_FRAME::FOOTPRINT_VIEWER_FRAME( KIWAY* aKiway, wxWindow* aParent
|
|||
// The footprint or pad specific clearance will be shown
|
||||
GetBoard()->GetDesignSettings().GetDefault()->SetClearance(0);
|
||||
|
||||
// Don't show the default board solder mask clearance in the footprint viewer. Only the
|
||||
// footprint or pad clearance setting should be shown if it is not 0.
|
||||
GetBoard()->GetDesignSettings().m_SolderMaskMargin = 0;
|
||||
|
||||
// Ensure all layers and items are visible:
|
||||
GetBoard()->SetVisibleAlls();
|
||||
SetScreen( new PCB_SCREEN( GetPageSizeIU() ) );
|
||||
|
|
Loading…
Reference in New Issue