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

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

parent cfed0a72
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -521,11 +521,11 @@ void PCB_PAINTER::draw( const D_PAD* aPad, int aLayer )
    else if( aLayer == F_Paste || aLayer == B_Paste )
    else if( aLayer == F_Paste || aLayer == B_Paste )
    {
    {
        // Drawing solderpaste
        // Drawing solderpaste
        int solderpasteMargin = aPad->GetLocalSolderPasteMargin();
        wxSize solderpasteMargin = aPad->GetSolderPasteMargin();


        m_gal->Translate( VECTOR2D( aPad->GetOffset() ) );
        m_gal->Translate( VECTOR2D( aPad->GetOffset() ) );
        size  = VECTOR2D( aPad->GetSize().x / 2.0 + solderpasteMargin,
        size  = VECTOR2D( aPad->GetSize().x / 2.0 + solderpasteMargin.x,
                          aPad->GetSize().y / 2.0 + solderpasteMargin );
                          aPad->GetSize().y / 2.0 + solderpasteMargin.y );
        shape = aPad->GetShape();
        shape = aPad->GetShape();
    }
    }
    else
    else
+10 −1
Original line number Original line Diff line number Diff line
@@ -32,6 +32,7 @@
#include <kiface_i.h>
#include <kiface_i.h>
#include <project.h>
#include <project.h>
#include <class_drawpanel.h>
#include <class_drawpanel.h>
#include <class_draw_panel_gal.h>
#include <confirm.h>
#include <confirm.h>
#include <gestfich.h>
#include <gestfich.h>
#include <xnode.h>
#include <xnode.h>
@@ -47,6 +48,7 @@
#include <worksheet_shape_builder.h>
#include <worksheet_shape_builder.h>


#include <class_board.h>
#include <class_board.h>
#include <class_module.h>
#include <pcbplot.h>
#include <pcbplot.h>
#include <pcbnew.h>
#include <pcbnew.h>
#include <pcbnew_id.h>
#include <pcbnew_id.h>
@@ -166,7 +168,14 @@ void PCB_EDIT_FRAME::Process_Config( wxCommandEvent& event )
    case ID_PCB_MASK_CLEARANCE:
    case ID_PCB_MASK_CLEARANCE:
        {
        {
            DIALOG_PADS_MASK_CLEARANCE dlg( this );
            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;
        break;