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
fe341876
Commit
fe341876
authored
Jun 05, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bugfix #1326155: pcbnew shows strange ratsnest lines in OpenGL mode.
parent
9305f77f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
+4
-17
class_board_connected_item.cpp
pcbnew/class_board_connected_item.cpp
+4
-17
No files found.
pcbnew/class_board_connected_item.cpp
View file @
fe341876
...
@@ -34,8 +34,6 @@
...
@@ -34,8 +34,6 @@
#include <class_board.h>
#include <class_board.h>
#include <class_board_item.h>
#include <class_board_item.h>
#include <ratsnest_data.h>
BOARD_CONNECTED_ITEM
::
BOARD_CONNECTED_ITEM
(
BOARD_ITEM
*
aParent
,
KICAD_T
idtype
)
:
BOARD_CONNECTED_ITEM
::
BOARD_CONNECTED_ITEM
(
BOARD_ITEM
*
aParent
,
KICAD_T
idtype
)
:
BOARD_ITEM
(
aParent
,
idtype
),
m_netinfo
(
&
NETINFO_LIST
::
ORPHANED
),
BOARD_ITEM
(
aParent
,
idtype
),
m_netinfo
(
&
NETINFO_LIST
::
ORPHANED
),
m_Subnet
(
0
),
m_ZoneSubnet
(
0
)
m_Subnet
(
0
),
m_ZoneSubnet
(
0
)
...
@@ -55,29 +53,18 @@ BOARD_CONNECTED_ITEM::BOARD_CONNECTED_ITEM( const BOARD_CONNECTED_ITEM& aItem )
...
@@ -55,29 +53,18 @@ BOARD_CONNECTED_ITEM::BOARD_CONNECTED_ITEM( const BOARD_CONNECTED_ITEM& aItem )
void
BOARD_CONNECTED_ITEM
::
SetNetCode
(
int
aNetCode
)
void
BOARD_CONNECTED_ITEM
::
SetNetCode
(
int
aNetCode
)
{
{
BOARD
*
board
=
GetBoard
();
BOARD
*
board
=
GetBoard
();
NETINFO_ITEM
*
oldNetInfo
=
m_netinfo
;
NETINFO_ITEM
*
newNetInfo
;
if
(
board
)
if
(
board
)
{
{
newNetI
nfo
=
board
->
FindNet
(
aNetCode
);
m_neti
nfo
=
board
->
FindNet
(
aNetCode
);
// The requested net does not exist, mark it as unconnected
// The requested net does not exist, mark it as unconnected
if
(
newNetI
nfo
==
NULL
)
if
(
m_neti
nfo
==
NULL
)
newNetI
nfo
=
board
->
FindNet
(
NETINFO_LIST
::
UNCONNECTED
);
m_neti
nfo
=
board
->
FindNet
(
NETINFO_LIST
::
UNCONNECTED
);
}
}
else
else
{
{
// There is no board that contains list of nets, the item is orphaned
// There is no board that contains list of nets, the item is orphaned
newNetInfo
=
&
NETINFO_LIST
::
ORPHANED
;
m_netinfo
=
&
NETINFO_LIST
::
ORPHANED
;
}
// Update ratsnest, if necessary
if
(
oldNetInfo
!=
newNetInfo
&&
board
)
{
board
->
GetRatsnest
()
->
Remove
(
this
);
m_netinfo
=
newNetInfo
;
board
->
GetRatsnest
()
->
Add
(
this
);
}
}
}
}
...
...
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