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
6b0980d9
Commit
6b0980d9
authored
May 18, 2013
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Gerbview: fix bug #1176538 (incorrect flashed items size, when defined by aperture macros)
parent
172bbc8f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
rs274_read_XY_and_IJ_coordinates.cpp
gerbview/rs274_read_XY_and_IJ_coordinates.cpp
+4
-4
No files found.
gerbview/rs274_read_XY_and_IJ_coordinates.cpp
View file @
6b0980d9
...
@@ -43,10 +43,10 @@ int scaletoIU( double aCoord, bool isMetric )
...
@@ -43,10 +43,10 @@ int scaletoIU( double aCoord, bool isMetric )
{
{
int
ret
;
int
ret
;
if
(
isMetric
)
if
(
isMetric
)
// gerber are units in mm
ret
=
KiROUND
(
aCoord
*
IU_PER_M
ILS
/
0.00254
);
ret
=
KiROUND
(
aCoord
*
IU_PER_M
M
);
else
else
// gerber are units in inches
ret
=
KiROUND
(
aCoord
*
IU_PER_MILS
);
ret
=
KiROUND
(
aCoord
*
IU_PER_MILS
*
1000.0
);
return
ret
;
return
ret
;
}
}
...
...
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