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
cc46ee0e
Commit
cc46ee0e
authored
Mar 26, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pcbnew: Fix Bug #1160396
parent
a6232e2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
pcb_parser.h
pcbnew/pcb_parser.h
+4
-3
No files found.
pcbnew/pcb_parser.h
View file @
cc46ee0e
...
...
@@ -176,9 +176,10 @@ class PCB_PARSER : public PCB_LEXER
inline
int
parseBoardUnits
()
throw
(
IO_ERROR
)
{
// There should be no rounding issues here, since the values in the file are in mm
// and get converted to nano-meters. This product should be an integer, exactly.
return
int
(
parseDouble
()
*
IU_PER_MM
);
// There should be no major rounding issues here,
// since the values in the file are in mm
// and get converted to nano-meters.
return
KiROUND
(
parseDouble
()
*
IU_PER_MM
);
}
inline
int
parseBoardUnits
(
const
char
*
aExpected
)
throw
(
PARSE_ERROR
)
...
...
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