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
0a11144c
Commit
0a11144c
authored
Jun 27, 2013
by
Dick Hollenbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix legacy board file footprint name setting in MODULE
parent
770d72c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
legacy_plugin.cpp
pcbnew/legacy_plugin.cpp
+5
-0
No files found.
pcbnew/legacy_plugin.cpp
View file @
0a11144c
...
@@ -277,6 +277,9 @@ void LEGACY_PLUGIN::loadAllSections( bool doAppend )
...
@@ -277,6 +277,9 @@ void LEGACY_PLUGIN::loadAllSections( bool doAppend )
if
(
TESTLINE
(
"$MODULE"
)
)
if
(
TESTLINE
(
"$MODULE"
)
)
{
{
auto_ptr
<
MODULE
>
module
(
new
MODULE
(
m_board
)
);
auto_ptr
<
MODULE
>
module
(
new
MODULE
(
m_board
)
);
module
->
SetLibRef
(
FROM_UTF8
(
StrPurge
(
line
+
SZ
(
"$MODULE"
)
)
)
);
LoadMODULE
(
module
.
get
()
);
LoadMODULE
(
module
.
get
()
);
m_board
->
Add
(
module
.
release
(),
ADD_APPEND
);
m_board
->
Add
(
module
.
release
(),
ADD_APPEND
);
}
}
...
@@ -998,12 +1001,14 @@ void LEGACY_PLUGIN::LoadMODULE( MODULE* aModule )
...
@@ -998,12 +1001,14 @@ void LEGACY_PLUGIN::LoadMODULE( MODULE* aModule )
aModule
->
SetLastEditTime
(
edittime
);
aModule
->
SetLastEditTime
(
edittime
);
}
}
/* footprint name set earlier, immediately after MODULE construction
else if( TESTLINE( "Li" ) ) // Library name of footprint
else if( TESTLINE( "Li" ) ) // Library name of footprint
{
{
// There can be whitespace in the footprint name on some old libraries.
// There can be whitespace in the footprint name on some old libraries.
// Grab everything after "Li" up to end of line:
// Grab everything after "Li" up to end of line:
//aModule->SetLibRef( FROM_UTF8( StrPurge( line + SZ( "Li" ) ) ) );
//aModule->SetLibRef( FROM_UTF8( StrPurge( line + SZ( "Li" ) ) ) );
}
}
*/
else
if
(
TESTLINE
(
"Sc"
)
)
// timestamp
else
if
(
TESTLINE
(
"Sc"
)
)
// timestamp
{
{
...
...
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