Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
0ec256cc
Commit
0ec256cc
authored
Jul 21, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed bug: solder paste clearance is not displayed (GAL).
parent
cfed0a72
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
4 deletions
+13
-4
pcb_painter.cpp
pcbnew/pcb_painter.cpp
+3
-3
pcbnew_config.cpp
pcbnew/pcbnew_config.cpp
+10
-1
No files found.
pcbnew/pcb_painter.cpp
View file @
0ec256cc
...
...
@@ -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
->
GetLocal
SolderPasteMargin
();
wxSize
solderpasteMargin
=
aPad
->
Get
SolderPasteMargin
();
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
...
...
pcbnew/pcbnew_config.cpp
View file @
0ec256cc
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment