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
0ceb90df
Commit
0ceb90df
authored
Dec 28, 2014
by
Cirilo Bernardo
Committed by
Wayne Stambaugh
Dec 28, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix bug in IDF exporter when circles and arcs have zero radius. (fixes lp:1371656)
parent
a5972e7b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
export_idf.cpp
pcbnew/exporters/export_idf.cpp
+11
-0
No files found.
pcbnew/exporters/export_idf.cpp
View file @
0ceb90df
...
@@ -76,6 +76,10 @@ static void idf_export_outline( BOARD* aPcb, IDF3_BOARD& aIDFBoard )
...
@@ -76,6 +76,10 @@ static void idf_export_outline( BOARD* aPcb, IDF3_BOARD& aIDFBoard )
{
{
case
S_SEGMENT
:
case
S_SEGMENT
:
{
{
if
(
(
graphic
->
GetStart
().
x
==
graphic
->
GetEnd
().
x
)
&&
(
graphic
->
GetStart
().
y
==
graphic
->
GetEnd
().
y
)
)
break
;
sp
.
x
=
graphic
->
GetStart
().
x
*
scale
+
offX
;
sp
.
x
=
graphic
->
GetStart
().
x
*
scale
+
offX
;
sp
.
y
=
-
graphic
->
GetStart
().
y
*
scale
+
offY
;
sp
.
y
=
-
graphic
->
GetStart
().
y
*
scale
+
offY
;
ep
.
x
=
graphic
->
GetEnd
().
x
*
scale
+
offX
;
ep
.
x
=
graphic
->
GetEnd
().
x
*
scale
+
offX
;
...
@@ -89,6 +93,10 @@ static void idf_export_outline( BOARD* aPcb, IDF3_BOARD& aIDFBoard )
...
@@ -89,6 +93,10 @@ static void idf_export_outline( BOARD* aPcb, IDF3_BOARD& aIDFBoard )
case
S_ARC
:
case
S_ARC
:
{
{
if
(
(
graphic
->
GetCenter
().
x
==
graphic
->
GetArcStart
().
x
)
&&
(
graphic
->
GetCenter
().
y
==
graphic
->
GetArcStart
().
y
)
)
break
;
sp
.
x
=
graphic
->
GetCenter
().
x
*
scale
+
offX
;
sp
.
x
=
graphic
->
GetCenter
().
x
*
scale
+
offX
;
sp
.
y
=
-
graphic
->
GetCenter
().
y
*
scale
+
offY
;
sp
.
y
=
-
graphic
->
GetCenter
().
y
*
scale
+
offY
;
ep
.
x
=
graphic
->
GetArcStart
().
x
*
scale
+
offX
;
ep
.
x
=
graphic
->
GetArcStart
().
x
*
scale
+
offX
;
...
@@ -102,6 +110,9 @@ static void idf_export_outline( BOARD* aPcb, IDF3_BOARD& aIDFBoard )
...
@@ -102,6 +110,9 @@ static void idf_export_outline( BOARD* aPcb, IDF3_BOARD& aIDFBoard )
case
S_CIRCLE
:
case
S_CIRCLE
:
{
{
if
(
graphic
->
GetRadius
()
==
0
)
break
;
sp
.
x
=
graphic
->
GetCenter
().
x
*
scale
+
offX
;
sp
.
x
=
graphic
->
GetCenter
().
x
*
scale
+
offX
;
sp
.
y
=
-
graphic
->
GetCenter
().
y
*
scale
+
offY
;
sp
.
y
=
-
graphic
->
GetCenter
().
y
*
scale
+
offY
;
ep
.
x
=
sp
.
x
-
graphic
->
GetRadius
()
*
scale
;
ep
.
x
=
sp
.
x
-
graphic
->
GetRadius
()
*
scale
;
...
...
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