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
21b70093
Commit
21b70093
authored
Jun 11, 2014
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refinements
parent
1385e39d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
2 deletions
+14
-2
moduleframe.cpp
pcbnew/moduleframe.cpp
+14
-2
No files found.
pcbnew/moduleframe.cpp
View file @
21b70093
...
...
@@ -269,10 +269,11 @@ void FOOTPRINT_EDIT_FRAME::retainLastFootprint()
if
(
module
)
{
pcb_io
.
Format
(
GetBoard
()
->
m_Modules
);
pcb_io
.
Format
(
module
);
wxString
pretty
=
FROM_UTF8
(
pcb_io
.
GetStringOutput
(
true
).
c_str
()
);
// save the footprint in the RSTRING facility.
Prj
().
SetRString
(
PROJECT
::
PCB_FOOTPRINT
,
pretty
);
}
}
...
...
@@ -303,10 +304,21 @@ void FOOTPRINT_EDIT_FRAME::restoreLastFootprint()
}
if
(
module
)
GetBoard
()
->
Add
(
module
);
// assumes BOARD is empty.
{
// assumes BOARD is empty.
wxASSERT
(
GetBoard
()
->
m_Modules
==
NULL
);
// no idea, its monkey see monkey do. I would encapsulate this into
// a member function if its actually necessary.
module
->
SetParent
(
GetBoard
()
);
module
->
SetLink
(
0
);
GetBoard
()
->
Add
(
module
);
}
}
}
const
wxChar
*
FOOTPRINT_EDIT_FRAME
::
GetFootprintEditorFrameName
()
{
return
FOOTPRINT_EDIT_FRAME_NAME
;
...
...
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