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
a338e0e5
Commit
a338e0e5
authored
Mar 17, 2011
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor GCC3 compiler warning fixes.
parent
dc1e4107
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
class_GERBER.h
gerbview/class_GERBER.h
+1
-1
PolyLine.cpp
polygon/PolyLine.cpp
+4
-4
No files found.
gerbview/class_GERBER.h
View file @
a338e0e5
...
...
@@ -139,7 +139,7 @@ private:
public
:
GERBER_IMAGE
(
GERBVIEW_FRAME
*
aParent
,
int
layer
);
~
GERBER_IMAGE
();
virtual
~
GERBER_IMAGE
();
void
Clear_GERBER_IMAGE
();
int
ReturnUsedDcodeNumber
();
virtual
void
ResetDefaultValues
();
...
...
polygon/PolyLine.cpp
View file @
a338e0e5
...
...
@@ -958,10 +958,10 @@ CPolyLine* CPolyLine::Chamfer( unsigned int aDistance )
// Chamfer one half of an edge at most
if
(
0.5
*
lena
<
distance
)
distance
=
0.5
*
lena
;
distance
=
(
unsigned
int
)(
0.5
*
(
double
)
lena
)
;
if
(
0.5
*
lenb
<
distance
)
distance
=
0.5
*
lenb
;
distance
=
(
unsigned
int
)(
0.5
*
(
double
)
lenb
)
;
nx
=
(
int
)
(
(
double
)
(
distance
*
xa
)
/
sqrt
(
(
double
)
(
xa
*
xa
+
ya
*
ya
)
)
);
ny
=
(
int
)
(
(
double
)
(
distance
*
ya
)
/
sqrt
(
(
double
)
(
xa
*
xa
+
ya
*
ya
)
)
);
...
...
@@ -1039,10 +1039,10 @@ CPolyLine* CPolyLine::Fillet( unsigned int aRadius, unsigned int aSegments )
// Limit rounding distance to one half of an edge
if
(
0.5
*
lena
*
denom
<
radius
)
radius
=
0.5
*
lena
*
denom
;
radius
=
(
unsigned
int
)(
0.5
*
lena
*
denom
)
;
if
(
0.5
*
lenb
*
denom
<
radius
)
radius
=
0.5
*
lenb
*
denom
;
radius
=
(
unsigned
int
)(
0.5
*
lenb
*
denom
)
;
// Calculate fillet arc absolute center point (xc, yx)
double
k
=
radius
/
sqrt
(
.5
*
(
1
-
cosine
)
);
...
...
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