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
0daa1fa6
Commit
0daa1fa6
authored
Nov 27, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Missing fixes for the revision 5301.
parent
6c4808bd
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
class_board_connected_item.cpp
pcbnew/class_board_connected_item.cpp
+3
-2
pns_router.cpp
pcbnew/router/pns_router.cpp
+2
-2
No files found.
pcbnew/class_board_connected_item.cpp
View file @
0daa1fa6
...
...
@@ -38,8 +38,6 @@ BOARD_CONNECTED_ITEM::BOARD_CONNECTED_ITEM( BOARD_ITEM* aParent, KICAD_T idtype
BOARD_ITEM
(
aParent
,
idtype
),
m_netinfo
(
&
NETINFO_LIST
::
ORPHANED
),
m_Subnet
(
0
),
m_ZoneSubnet
(
0
)
{
// The unconnected net is set only in case the item belongs to a BOARD
SetNetCode
(
NETINFO_LIST
::
UNCONNECTED
);
}
...
...
@@ -52,12 +50,15 @@ BOARD_CONNECTED_ITEM::BOARD_CONNECTED_ITEM( const BOARD_CONNECTED_ITEM& aItem )
void
BOARD_CONNECTED_ITEM
::
SetNetCode
(
int
aNetCode
)
{
assert
(
aNetCode
>=
0
);
BOARD
*
board
=
GetBoard
();
if
(
board
)
m_netinfo
=
board
->
FindNet
(
aNetCode
);
else
m_netinfo
=
&
NETINFO_LIST
::
ORPHANED
;
assert
(
m_netinfo
);
}
...
...
pcbnew/router/pns_router.cpp
View file @
0daa1fa6
...
...
@@ -698,7 +698,7 @@ void PNS_ROUTER::CommitRouting( PNS_NODE* aNode )
track
->
SetEnd
(
wxPoint
(
s
.
B
.
x
,
s
.
B
.
y
)
);
track
->
SetWidth
(
seg
->
Width
()
);
track
->
SetLayer
(
ToLAYER_ID
(
seg
->
Layers
().
Start
()
)
);
track
->
SetNetCode
(
seg
->
Net
()
);
track
->
SetNetCode
(
seg
->
Net
()
>
0
?
seg
->
Net
()
:
0
);
newBI
=
track
;
break
;
}
...
...
@@ -710,7 +710,7 @@ void PNS_ROUTER::CommitRouting( PNS_NODE* aNode )
via_board
->
SetPosition
(
wxPoint
(
via
->
Pos
().
x
,
via
->
Pos
().
y
)
);
via_board
->
SetWidth
(
via
->
Diameter
()
);
via_board
->
SetDrill
(
via
->
Drill
()
);
via_board
->
SetNetCode
(
via
->
Net
()
);
via_board
->
SetNetCode
(
via
->
Net
()
>
0
?
seg
->
Net
()
:
0
);
via_board
->
SetViaType
(
via
->
ViaType
()
);
// MUST be before SetLayerPair()
via_board
->
SetLayerPair
(
ToLAYER_ID
(
via
->
Layers
().
Start
()
),
ToLAYER_ID
(
via
->
Layers
().
End
()
)
);
...
...
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