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
6ad9d013
Commit
6ad9d013
authored
Jan 07, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Safer way for syncing pads in Push and Shover router.
parent
75db0ceb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
pns_router.cpp
pcbnew/router/pns_router.cpp
+9
-5
No files found.
pcbnew/router/pns_router.cpp
View file @
6ad9d013
...
...
@@ -47,7 +47,7 @@
#include <class_board.h>
#include <class_board_item.h>
#include <class_
pad
.h>
#include <class_
module
.h>
#include <class_track.h>
#include <ratsnest_data.h>
#include <layers_id_colors_and_visibility.h>
...
...
@@ -248,11 +248,15 @@ void PNS_ROUTER::SyncWorld()
m_world
->
SetMaxClearance
(
1000000
);
// m_board->GetBiggestClearanceValue());
pads
=
m_board
->
GetPads
();
BOOST_FOREACH
(
D_PAD
*
pad
,
pads
)
{
PNS_ITEM
*
solid
=
syncPad
(
pad
);
for
(
MODULE
*
module
=
m_board
->
m_Modules
;
module
;
module
=
module
->
Next
()
)
{
for
(
D_PAD
*
pad
=
module
->
Pads
();
pad
;
pad
=
pad
->
Next
()
)
{
PNS_ITEM
*
solid
=
syncPad
(
pad
);
if
(
solid
)
m_world
->
Add
(
solid
);
if
(
solid
)
m_world
->
Add
(
solid
);
}
}
for
(
TRACK
*
t
=
m_board
->
m_Track
;
t
;
t
=
t
->
Next
()
)
...
...
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