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
740c03e7
Commit
740c03e7
authored
Feb 02, 2011
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug 711751.
parent
c9b27ee7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
17 deletions
+10
-17
locate.cpp
pcbnew/locate.cpp
+8
-16
magnetic_tracks_functions.cpp
pcbnew/magnetic_tracks_functions.cpp
+2
-1
No files found.
pcbnew/locate.cpp
View file @
740c03e7
...
@@ -112,16 +112,10 @@ D_PAD* Locate_Pad_Connecte( BOARD* Pcb, TRACK* ptr_piste, int extr )
...
@@ -112,16 +112,10 @@ D_PAD* Locate_Pad_Connecte( BOARD* Pcb, TRACK* ptr_piste, int extr )
/*
/*
* Locate pad pointed to by the coordinates ref_pos.x,, ref_pos.y or
* Locate a pad pointed to by the coordinates ref_pos.x, ref_pos.y
* the mouse, search done on all tracks.
* aLayerMask is allowed layers ( bitmap mask)
* Input:
* - mouse coord or ref_pos
* Returns:
* Returns:
* Pointer to the pad if found.
* Pointer to a pad if found or NULL
* NULL pointer if pad NOT FOUND
* Num_empr = number of fingerprint pad
*
* Priority is the active layer
*/
*/
D_PAD
*
Locate_Any_Pad
(
BOARD
*
Pcb
,
const
wxPoint
&
ref_pos
,
int
aLayerMask
)
D_PAD
*
Locate_Any_Pad
(
BOARD
*
Pcb
,
const
wxPoint
&
ref_pos
,
int
aLayerMask
)
{
{
...
@@ -139,14 +133,12 @@ D_PAD* Locate_Any_Pad( BOARD* Pcb, const wxPoint& ref_pos, int aLayerMask )
...
@@ -139,14 +133,12 @@ D_PAD* Locate_Any_Pad( BOARD* Pcb, const wxPoint& ref_pos, int aLayerMask )
}
}
/* Locate pad pointed to by the coordinate ref_pos.x,, ref_pos.y or
/* Locate the pad pointed to by the coordinate ref_pos.x,, ref_pos.y
* the mouse on the current footprint.
* Input:
* Input:
* -
General parameters of the footprint update by characters()
* -
the footprint to test
* -
= M
asque_layer layer(s) (bit_masque) which must be the pad
* -
m
asque_layer layer(s) (bit_masque) which must be the pad
* Returns:
* Returns:
* A pointer to the pad if found
* A pointer to the pad if found or NULL
* NULL pointer if pad NOT FOUND
*/
*/
D_PAD
*
Locate_Pads
(
MODULE
*
module
,
const
wxPoint
&
ref_pos
,
int
masque_layer
)
D_PAD
*
Locate_Pads
(
MODULE
*
module
,
const
wxPoint
&
ref_pos
,
int
masque_layer
)
{
{
...
...
pcbnew/magnetic_tracks_functions.cpp
View file @
740c03e7
...
@@ -152,7 +152,8 @@ bool Magnetize( BOARD* m_Pcb, WinEDA_PcbFrame* frame, int aCurrentTool, wxSize g
...
@@ -152,7 +152,8 @@ bool Magnetize( BOARD* m_Pcb, WinEDA_PcbFrame* frame, int aCurrentTool, wxSize g
if
(
doPad
)
if
(
doPad
)
{
{
D_PAD
*
pad
=
Locate_Any_Pad
(
m_Pcb
,
pos
,
screen
->
m_Active_Layer
);
int
layer_mask
=
g_TabOneLayerMask
[
screen
->
m_Active_Layer
];
D_PAD
*
pad
=
Locate_Any_Pad
(
m_Pcb
,
pos
,
layer_mask
);
if
(
pad
)
if
(
pad
)
{
{
...
...
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