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
f24bc87a
Commit
f24bc87a
authored
Mar 08, 2014
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix Bug #1289416 (Broken setting of layer list in D_PAD:: ViewGetLayers() for GAL).
parent
63401f3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
9 deletions
+20
-9
class_pad.cpp
pcbnew/class_pad.cpp
+20
-9
No files found.
pcbnew/class_pad.cpp
View file @
f24bc87a
...
...
@@ -842,29 +842,40 @@ void D_PAD::ViewGetLayers( int aLayers[], int& aCount ) const
// Multi layer pad
aLayers
[
aCount
++
]
=
ITEM_GAL_LAYER
(
PADS_VISIBLE
);
aLayers
[
aCount
++
]
=
NETNAMES_GAL_LAYER
(
PADS_NETNAMES_VISIBLE
);
aLayers
[
aCount
++
]
=
SOLDERMASK_N_FRONT
;
aLayers
[
aCount
++
]
=
SOLDERMASK_N_BACK
;
aLayers
[
aCount
++
]
=
SOLDERPASTE_N_FRONT
;
aLayers
[
aCount
++
]
=
SOLDERPASTE_N_BACK
;
}
else
if
(
IsOnLayer
(
LAYER_N_FRONT
)
)
{
aLayers
[
aCount
++
]
=
ITEM_GAL_LAYER
(
PAD_FR_VISIBLE
);
aLayers
[
aCount
++
]
=
NETNAMES_GAL_LAYER
(
PAD_FR_NETNAMES_VISIBLE
);
aLayers
[
aCount
++
]
=
SOLDERMASK_N_FRONT
;
aLayers
[
aCount
++
]
=
SOLDERPASTE_N_FRONT
;
}
else
if
(
IsOnLayer
(
LAYER_N_BACK
)
)
{
aLayers
[
aCount
++
]
=
ITEM_GAL_LAYER
(
PAD_BK_VISIBLE
);
aLayers
[
aCount
++
]
=
NETNAMES_GAL_LAYER
(
PAD_BK_NETNAMES_VISIBLE
);
}
if
(
IsOnLayer
(
SOLDERMASK_N_FRONT
)
)
aLayers
[
aCount
++
]
=
SOLDERMASK_N_FRONT
;
if
(
IsOnLayer
(
SOLDERMASK_N_BACK
)
)
aLayers
[
aCount
++
]
=
SOLDERMASK_N_BACK
;
if
(
IsOnLayer
(
SOLDERPASTE_N_FRONT
)
)
aLayers
[
aCount
++
]
=
SOLDERPASTE_N_FRONT
;
if
(
IsOnLayer
(
SOLDERPASTE_N_BACK
)
)
aLayers
[
aCount
++
]
=
SOLDERPASTE_N_BACK
;
}
if
(
IsOnLayer
(
ADHESIVE_N_BACK
)
)
aLayers
[
aCount
++
]
=
ADHESIVE_N_BACK
;
if
(
IsOnLayer
(
ADHESIVE_N_FRONT
)
)
aLayers
[
aCount
++
]
=
ADHESIVE_N_FRONT
;
#ifdef __WXDEBUG__
else
// Should not occur
if
(
aCount
==
0
)
// Should not occur
{
wxLogWarning
(
wxT
(
"D_PAD::ViewGetLayers():PAD
on layer different than FRONT/BACK
"
)
);
wxLogWarning
(
wxT
(
"D_PAD::ViewGetLayers():PAD
has no layer
"
)
);
}
#endif
}
...
...
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