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
8e601974
Commit
8e601974
authored
Jan 26, 2014
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
GAL takes into account hidden module text settings.
parent
e537480f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
16 deletions
+23
-16
class_text_mod.cpp
pcbnew/class_text_mod.cpp
+23
-16
No files found.
pcbnew/class_text_mod.cpp
View file @
8e601974
...
...
@@ -417,28 +417,35 @@ EDA_ITEM* TEXTE_MODULE::Clone() const
void
TEXTE_MODULE
::
ViewGetLayers
(
int
aLayers
[],
int
&
aCount
)
const
{
switch
(
m_Type
)
if
(
m_NoShow
)
// Hidden text
{
case
TEXT_is_REFERENCE
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_REFERENCES_VISIBLE
);
break
;
case
TEXT_is_VALUE
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_VALUES_VISIBLE
);
break
;
default
:
switch
(
GetParent
()
->
GetLayer
()
)
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_TEXT_INVISIBLE
);
}
else
{
switch
(
m_Type
)
{
case
LAYER_N_BACK
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_
TEXT_BK_VISIBLE
);
// how about SILKSCREEN_N_BACK?
case
TEXT_is_REFERENCE
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_
REFERENCES_VISIBLE
);
break
;
case
LAYER_N_FRONT
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_TEXT_FR_VISIBLE
);
// how about SILKSCREEN_N_FRONT?
case
TEXT_is_VALUE
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_VALUES_VISIBLE
);
break
;
default
:
switch
(
GetParent
()
->
GetLayer
()
)
{
case
LAYER_N_BACK
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_TEXT_BK_VISIBLE
);
// how about SILKSCREEN_N_BACK?
break
;
case
LAYER_N_FRONT
:
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
MOD_TEXT_FR_VISIBLE
);
// how about SILKSCREEN_N_FRONT?
break
;
}
break
;
}
break
;
}
aCount
=
1
;
...
...
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