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
26f6e259
Commit
26f6e259
authored
Jun 21, 2013
by
Maciej Suminski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Shows single layer pads with proper colors.
parent
145a3f20
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
class_pad.cpp
pcbnew/class_pad.cpp
+21
-2
No files found.
pcbnew/class_pad.cpp
View file @
26f6e259
...
@@ -764,8 +764,27 @@ void D_PAD::ViewGetLayers( int aLayers[], int& aCount ) const
...
@@ -764,8 +764,27 @@ void D_PAD::ViewGetLayers( int aLayers[], int& aCount ) const
}
}
else
else
{
{
// Multi layer pad with hole - pad is shown on one common layer, hole on the other
if
(
IsOnLayer
(
LAYER_N_FRONT
)
&&
IsOnLayer
(
LAYER_N_BACK
)
)
{
// Multi layer pad
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
PADS_VISIBLE
);
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
PADS_VISIBLE
);
}
else
if
(
IsOnLayer
(
LAYER_N_FRONT
)
)
{
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
PAD_FR_VISIBLE
);
}
else
if
(
IsOnLayer
(
LAYER_N_BACK
)
)
{
aLayers
[
0
]
=
ITEM_GAL_LAYER
(
PAD_BK_VISIBLE
);
}
#ifdef __WXDEBUG__
else
// Should not occur
{
wxLogWarning
(
wxT
(
"D_PAD::ViewGetLayers():PAD on layer different than FRONT/BACK"
)
);
}
#endif
// Draw a hole
aLayers
[
1
]
=
ITEM_GAL_LAYER
(
PAD_HOLES_VISIBLE
);
aLayers
[
1
]
=
ITEM_GAL_LAYER
(
PAD_HOLES_VISIBLE
);
aCount
=
2
;
aCount
=
2
;
...
...
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