cvpcb: don't show board-level soldermask

Only show soldermask in cvpcb if it was defined in the footprint or pad,
not the board defaults.
This commit is contained in:
Seth Hillbrand 2018-08-28 17:00:27 -07:00
parent 6754aa8a74
commit 9527034e0f
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ DISPLAY_FOOTPRINTS_FRAME::DISPLAY_FOOTPRINTS_FRAME( KIWAY* aKiway, CVPCB_MAINFRA
SetBoard( new BOARD() );
SetScreen( new PCB_SCREEN( GetPageSizeIU() ) );
// Don't show the default board solder mask clearance. Only the
// footprint or pad clearance setting should be shown if it is not 0.
GetBoard()->GetDesignSettings().m_SolderMaskMargin = 0;
LoadSettings( config() );
// Initialize grid id to a default value if not found in config or incorrect: