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
cbdecfdd
Commit
cbdecfdd
authored
Sep 05, 2007
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pads when parent module is not visible
parent
74a635c1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
collectors.cpp
pcbnew/collectors.cpp
+17
-14
No files found.
pcbnew/collectors.cpp
View file @
cbdecfdd
...
...
@@ -62,6 +62,7 @@ const KICAD_T GENERAL_COLLECTOR::AllBoardItems[] = {
SEARCH_RESULT
GENERAL_COLLECTOR
::
Inspect
(
EDA_BaseStruct
*
testItem
,
const
void
*
notUsed
)
{
BOARD_ITEM
*
item
=
(
BOARD_ITEM
*
)
testItem
;
MODULE
*
module
=
NULL
;
#if 1 // debugging
static
int
breakhere
=
0
;
...
...
@@ -114,7 +115,9 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_BaseStruct* testItem, const void*
switch
(
item
->
Type
()
)
{
case
TYPEPAD
:
module
=
(
MODULE
*
)
item
->
GetParent
();
break
;
case
TYPEVIA
:
break
;
case
TYPETRACK
:
...
...
@@ -125,29 +128,19 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_BaseStruct* testItem, const void*
break
;
case
TYPECOTATION
:
break
;
case
TYPETEXTEMODULE
:
{
module
=
(
MODULE
*
)
item
->
GetParent
();
TEXTE_MODULE
*
tm
=
(
TEXTE_MODULE
*
)
item
;
MODULE
*
parent
=
(
MODULE
*
)
tm
->
GetParent
();
if
(
m_Guide
->
IgnoreMTextsMarkedNoShow
()
&&
tm
->
m_NoShow
)
goto
exit
;
if
(
parent
)
{
if
(
m_Guide
->
IgnoreMTextsOnCopper
()
&&
parent
->
GetLayer
()
==
LAYER_CUIVRE_N
)
goto
exit
;
if
(
m_Guide
->
IgnoreMTextsOnCmp
()
&&
parent
->
GetLayer
()
==
LAYER_CMP_N
)
goto
exit
;
}
}
break
;
case
TYPEMODULE
:
if
(
m_Guide
->
IgnoreModulesOnCu
()
&&
item
->
GetLayer
()
==
LAYER_CUIVRE_N
)
goto
exit
;
if
(
m_Guide
->
IgnoreModulesOnCmp
()
&&
item
->
GetLayer
()
==
LAYER_CMP_N
)
goto
exit
;
module
=
(
MODULE
*
)
item
;
break
;
default
:
...
...
@@ -157,6 +150,16 @@ SEARCH_RESULT GENERAL_COLLECTOR::Inspect( EDA_BaseStruct* testItem, const void*
// common tests:
if
(
module
)
{
if
(
m_Guide
->
IgnoreMTextsOnCopper
()
&&
module
->
GetLayer
()
==
LAYER_CUIVRE_N
)
goto
exit
;
if
(
m_Guide
->
IgnoreMTextsOnCmp
()
&&
module
->
GetLayer
()
==
LAYER_CMP_N
)
goto
exit
;
}
if
(
item
->
IsOnLayer
(
m_Guide
->
GetPreferredLayer
()
)
||
m_Guide
->
IgnorePreferredLayer
()
)
{
int
layer
=
item
->
GetLayer
();
...
...
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