Commit 0ec256cc authored by Maciej Suminski's avatar Maciej Suminski

Fixed bug: solder paste clearance is not displayed (GAL).

parent cfed0a72
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment