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
43caa734
Commit
43caa734
authored
May 23, 2012
by
Andrey Fedorushkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: fix control data valid in design rules when define USE_PCBNEW_NANOMETRES
parent
cdd60c95
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
dialog_design_rules.cpp
pcbnew/dialogs/dialog_design_rules.cpp
+7
-2
No files found.
pcbnew/dialogs/dialog_design_rules.cpp
View file @
43caa734
...
...
@@ -986,6 +986,11 @@ bool DIALOG_DESIGN_RULES::TestDataValidity()
int
minUViaDia
=
ReturnValueFromTextCtrl
(
*
m_SetMicroViasMinSizeCtrl
);
int
minUViaDrill
=
ReturnValueFromTextCtrl
(
*
m_SetMicroViasMinDrillCtrl
);
int
minTrackWidth
=
ReturnValueFromTextCtrl
(
*
m_SetTrackMinWidthCtrl
);
#if defined( USE_PCBNEW_NANOMETRES )
int
maxval
=
25400000
;
#else
int
maxval
=
10000
;
#endif
for
(
int
row
=
0
;
row
<
m_grid
->
GetNumberRows
();
row
++
)
...
...
@@ -1086,7 +1091,7 @@ bool DIALOG_DESIGN_RULES::TestDataValidity()
m_MessagesList
->
AppendToPage
(
msg
);
}
if
(
tracksize
>
10000
)
if
(
tracksize
>
maxval
)
{
result
=
false
;
msg
.
Printf
(
_
(
"<b>Extra Track %d Size</b> %s > <b>1 inch!</b><br>"
),
...
...
@@ -1129,7 +1134,7 @@ bool DIALOG_DESIGN_RULES::TestDataValidity()
}
// Test for a reasonnable via size:
if
(
viadia
>
10000
)
// 1 inch!
if
(
viadia
>
maxval
)
// 1 inch!
{
result
=
false
;
msg
.
Printf
(
_
(
"<b>Extra Via %d Size</b>%s > <b>1 inch!</b><br>"
),
...
...
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