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
4c001cd4
Commit
4c001cd4
authored
Jul 20, 2009
by
charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
improved OSX compatibility and fixed possible crash in debug mode in Pcbnew
parent
1868bb8e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
class_board.cpp
pcbnew/class_board.cpp
+2
-0
No files found.
pcbnew/class_board.cpp
View file @
4c001cd4
...
@@ -827,10 +827,12 @@ NETINFO_ITEM* BOARD::FindNet( int anetcode ) const
...
@@ -827,10 +827,12 @@ NETINFO_ITEM* BOARD::FindNet( int anetcode ) const
// zero is reserved for "no connection" and is not used.
// zero is reserved for "no connection" and is not used.
// NULL is returned for non valid netcodes
// NULL is returned for non valid netcodes
NETINFO_ITEM
*
item
=
m_NetInfo
->
GetNetItem
(
anetcode
);
NETINFO_ITEM
*
item
=
m_NetInfo
->
GetNetItem
(
anetcode
);
#if defined(DEBUG)
if
(
item
)
// item can be NULL if not valid
if
(
item
)
// item can be NULL if not valid
{
{
wxASSERT
(
anetcode
==
item
->
GetNet
()
);
wxASSERT
(
anetcode
==
item
->
GetNet
()
);
}
}
#endif
return
item
;
return
item
;
}
}
...
...
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