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
74d373e6
Commit
74d373e6
authored
Jan 23, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix segfault
parent
5dc4cd59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
export_gencad.cpp
pcbnew/export_gencad.cpp
+4
-4
No files found.
pcbnew/export_gencad.cpp
View file @
74d373e6
...
...
@@ -194,7 +194,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb )
fputs
(
"$PADS
\n
"
,
file
);
if
(
pcb
->
m_NbPads
>
0
)
if
(
pcb
->
m_NbPads
>
0
)
// pcb->m_Pads is NULL unless this is true
{
// Generation de la liste des pads tries par forme et dimensions:
memsize
=
(
pcb
->
m_NbPads
+
1
)
*
sizeof
(
D_PAD
*
);
...
...
@@ -227,7 +227,8 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb )
fprintf
(
file
,
"PAD PAD%d"
,
pad
->
m_logical_connexion
);
dx
=
pad
->
m_Size
.
x
/
2
;
dy
=
pad
->
m_Size
.
y
/
2
;
dx
=
pad
->
m_Size
.
x
/
2
;
dy
=
pad
->
m_Size
.
y
/
2
;
switch
(
pad
->
m_PadShape
)
{
...
...
@@ -302,8 +303,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb )
fputs
(
"$ENDPADS
\n\n
"
,
file
);
if
(
pad_list_base
)
MyFree
(
pad_list_base
);
MyFree
(
pad_list_base
);
}
...
...
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