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
65b0343b
Commit
65b0343b
authored
Oct 02, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:
https://answers.launchpad.net/kicad/+question/233824
parent
8c87d71e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
dialog_pad_properties.cpp
pcbnew/dialogs/dialog_pad_properties.cpp
+19
-13
No files found.
pcbnew/dialogs/dialog_pad_properties.cpp
View file @
65b0343b
...
...
@@ -682,12 +682,15 @@ bool DIALOG_PAD_PROPERTIES::padValuesOK()
if
(
m_dummyPad
->
GetDrillSize
().
x
||
m_dummyPad
->
GetDrillSize
().
y
)
{
msg
=
_
(
"Error: pad is not on a copper layer and has a hole"
);
if
(
m_dummyPad
->
GetAttribute
()
==
PAD_HOLE_NOT_PLATED
)
{
msg
+=
wxT
(
"
\n
"
);
msg
+=
_
(
"For NPTH pad, set pad drill value to pad size value,
\n
\
if you do not want this pad plotted in gerber files"
);
msg
+=
_
(
"For NPTH pad, set pad drill value to pad size value,
\n
"
"if you do not want this pad plotted in gerber files"
);
}
error_msgs
.
Add
(
msg
);
}
}
...
...
@@ -697,6 +700,7 @@ if you do not want this pad plotted in gerber files");
max_size
.
y
=
std
::
abs
(
m_dummyPad
->
GetOffset
().
y
);
max_size
.
x
+=
m_dummyPad
->
GetDrillSize
().
x
/
2
;
max_size
.
y
+=
m_dummyPad
->
GetDrillSize
().
y
/
2
;
if
(
(
m_dummyPad
->
GetSize
().
x
/
2
<
max_size
.
x
)
||
(
m_dummyPad
->
GetSize
().
y
/
2
<
max_size
.
y
)
)
{
...
...
@@ -710,19 +714,21 @@ if you do not want this pad plotted in gerber files");
switch
(
m_dummyPad
->
GetAttribute
()
)
{
case
PAD_STANDARD
:
// Pad through hole, a hole is expected
if
(
m_dummyPad
->
GetDrillSize
().
x
<=
0
)
error_msgs
.
Add
(
_
(
"Incorrect value for pad drill (too small value)"
)
);
break
;
case
PAD_STANDARD
:
// Pad through hole, a hole is expected
if
(
m_dummyPad
->
GetDrillSize
().
x
<=
0
)
error_msgs
.
Add
(
_
(
"Incorrect value for pad drill (too small value)"
)
);
break
;
case
PAD_SMD
:
// SMD and Connector pads (One external copper layer only)
case
PAD_CONN
:
if
(
(
padlayers_mask
&
LAYER_BACK
)
&&
(
padlayers_mask
&
LAYER_FRONT
)
)
error_msgs
.
Add
(
_
(
"Error: only one copper layer allowed for this pad"
)
);
break
;
case
PAD_SMD
:
// SMD and Connector pads (One external copper layer only)
if
(
(
padlayers_mask
&
LAYER_BACK
)
&&
(
padlayers_mask
&
LAYER_FRONT
)
)
error_msgs
.
Add
(
_
(
"Error: only one copper layer allowed for this pad"
)
);
break
;
case
PAD_HOLE_NOT_PLATED
:
// Not plated
break
;
case
PAD_CONN
:
// connectors can have pads on "All" Cu layers.
break
;
case
PAD_HOLE_NOT_PLATED
:
// Not plated
break
;
}
if
(
error_msgs
.
GetCount
()
)
...
...
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