Fixed bug: solder paste clearance is not displayed (GAL).
This commit is contained in:
parent
cfed0a7202
commit
0ec256ccb4
|
@ -521,11 +521,11 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer )
|
|||
else if( aLayer == F_Paste || aLayer == B_Paste )
|
||||
{
|
||||
// Drawing solderpaste
|
||||
int solderpasteMargin = aPad->GetLocalSolderPasteMargin();
|
||||
wxSize solderpasteMargin = aPad->GetSolderPasteMargin();
|
||||
|
||||
m_gal->Translate( VECTOR2D( aPad->GetOffset() ) );
|
||||
size = VECTOR2D( aPad->GetSize().x / 2.0 + solderpasteMargin,
|
||||
aPad->GetSize().y / 2.0 + solderpasteMargin );
|
||||
size = VECTOR2D( aPad->GetSize().x / 2.0 + solderpasteMargin.x,
|
||||
aPad->GetSize().y / 2.0 + solderpasteMargin.y );
|
||||
shape = aPad->GetShape();
|
||||
}
|
||||
else
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
#include <kiface_i.h>
|
||||
#include <project.h>
|
||||
#include <class_drawpanel.h>
|
||||
#include <class_draw_panel_gal.h>
|
||||
#include <confirm.h>
|
||||
#include <gestfich.h>
|
||||
#include <xnode.h>
|
||||
|
@ -47,6 +48,7 @@
|
|||
#include <worksheet_shape_builder.h>
|
||||
|
||||
#include <class_board.h>
|
||||
#include <class_module.h>
|
||||
#include <pcbplot.h>
|
||||
#include <pcbnew.h>
|
||||
#include <pcbnew_id.h>
|
||||
|
@ -166,7 +168,14 @@ void PCB_EDIT_FRAME::Process_Config( wxCommandEvent& event )
|
|||
case ID_PCB_MASK_CLEARANCE:
|
||||
{
|
||||
DIALOG_PADS_MASK_CLEARANCE dlg( this );
|
||||
dlg.ShowModal();
|
||||
|
||||
if( dlg.ShowModal() == 1 && IsGalCanvasActive() )
|
||||
{
|
||||
for( MODULE* module = GetBoard()->m_Modules; module; module = module->Next() )
|
||||
module->ViewUpdate();
|
||||
|
||||
GetGalCanvas()->Refresh();
|
||||
}
|
||||
}
|
||||
break;
|
||||
|
||||
|
|
Loading…
Reference in New Issue