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
704e3c51
Commit
704e3c51
authored
Oct 26, 2010
by
jean-pierre charras
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to fix a gencad export issue.
parent
e0f8b04c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
36 deletions
+2
-36
export_gencad.cpp
pcbnew/export_gencad.cpp
+1
-1
modules.cpp
pcbnew/modules.cpp
+1
-35
No files found.
pcbnew/export_gencad.cpp
View file @
704e3c51
...
...
@@ -238,7 +238,7 @@ void CreatePadsShapesSection( FILE* file, BOARD* pcb )
pad_type
=
"RECTANGULAR"
;
fprintf
(
file
,
" %s %d
\n
"
,
pad_type
,
pad
->
m_Drill
.
x
);
fprintf
(
file
,
"RECTANGLE %d %d %d %d
\n
"
,
pad
->
m_Offset
.
x
-
dx
,
-
(
pad
->
m_Offset
.
y
-
dy
)
,
pad
->
m_Offset
.
x
-
dx
,
-
pad
->
m_Offset
.
y
-
dy
,
pad
->
m_Size
.
x
,
pad
->
m_Size
.
y
);
break
;
...
...
pcbnew/modules.cpp
View file @
704e3c51
...
...
@@ -28,40 +28,6 @@ static PICKED_ITEMS_LIST s_PickedList; /* a picked list to
* and dragged tracks
*/
/* Show or hide module pads.
*/
void
Show_Pads_On_Off
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
MODULE
*
module
)
{
D_PAD
*
pt_pad
;
bool
pad_fill_tmp
;
if
(
module
==
0
)
return
;
pad_fill_tmp
=
DisplayOpt
.
DisplayPadFill
;
DisplayOpt
.
DisplayPadFill
=
true
;
/* Trace en SKETCH */
pt_pad
=
module
->
m_Pads
;
for
(
;
pt_pad
!=
NULL
;
pt_pad
=
pt_pad
->
Next
()
)
{
pt_pad
->
Draw
(
panel
,
DC
,
GR_XOR
,
g_Offset_Module
);
}
DisplayOpt
.
DisplayPadFill
=
pad_fill_tmp
;
}
/* Show or hide ratsnest
*/
void
Rastnest_On_Off
(
WinEDA_DrawPanel
*
panel
,
wxDC
*
DC
,
MODULE
*
module
)
{
WinEDA_BasePcbFrame
*
frame
=
(
WinEDA_BasePcbFrame
*
)
panel
->
GetParent
();
frame
->
build_ratsnest_module
(
DC
,
module
);
frame
->
trace_ratsnest_module
(
DC
);
}
/* Get a module name from user and return a pointer to the corresponding module
*/
MODULE
*
WinEDA_BasePcbFrame
::
GetModuleByName
()
...
...
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