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
b5bb5642
Commit
b5bb5642
authored
May 10, 2013
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix footprint library search path bug. (fixes lp:1178427
parent
25545756
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
footprint_info.cpp
common/footprint_info.cpp
+12
-12
No files found.
common/footprint_info.cpp
View file @
b5bb5642
...
@@ -32,20 +32,14 @@
...
@@ -32,20 +32,14 @@
* and their documentation (comments and keywords)
* and their documentation (comments and keywords)
*/
*/
#include <fctsys.h>
#include <fctsys.h>
#include <wxstruct.h>
#include <common.h>
#include <common.h>
#include <kicad_string.h>
#include <macros.h>
#include <macros.h>
#include <appl_wxstruct.h>
#include <appl_wxstruct.h>
#include <wildcards_and_files_ext.h>
#include <pcbcommon.h>
#include <pcbstruct.h>
#include <footprint_info.h>
#include <footprint_info.h>
#include <io_mgr.h>
#include <io_mgr.h>
#include <class_pad.h>
#include <class_module.h>
#include <class_module.h>
#include <wildcards_and_files_ext.h>
bool
FOOTPRINT_LIST
::
ReadFootprintFiles
(
wxArrayString
&
aFootprintsLibNames
)
bool
FOOTPRINT_LIST
::
ReadFootprintFiles
(
wxArrayString
&
aFootprintsLibNames
)
...
@@ -62,14 +56,20 @@ bool FOOTPRINT_LIST::ReadFootprintFiles( wxArrayString& aFootprintsLibNames )
...
@@ -62,14 +56,20 @@ bool FOOTPRINT_LIST::ReadFootprintFiles( wxArrayString& aFootprintsLibNames )
// Parse Libraries Listed
// Parse Libraries Listed
for
(
unsigned
ii
=
0
;
ii
<
aFootprintsLibNames
.
GetCount
();
ii
++
)
for
(
unsigned
ii
=
0
;
ii
<
aFootprintsLibNames
.
GetCount
();
ii
++
)
{
{
// File names can be fully qualified or file name only.
// F
ootprint library f
ile names can be fully qualified or file name only.
wxFileName
filename
=
aFootprintsLibNames
[
ii
];
wxFileName
filename
=
aFootprintsLibNames
[
ii
];
if
(
!
filename
.
IsAbsolute
()
)
if
(
!
filename
.
FileExists
()
)
{
{
filename
=
wxFileName
(
wxEmptyString
,
aFootprintsLibNames
[
ii
],
filename
=
wxGetApp
().
FindLibraryPath
(
filename
.
GetFullName
()
);
LegacyFootprintLibPathExtension
);
filename
=
wxGetApp
().
FindLibraryPath
(
filename
);
if
(
!
filename
.
FileExists
()
)
{
filename
=
wxFileName
(
wxEmptyString
,
aFootprintsLibNames
[
ii
],
LegacyFootprintLibPathExtension
);
filename
=
wxGetApp
().
FindLibraryPath
(
filename
.
GetFullName
()
);
}
}
}
if
(
!
filename
.
FileExists
()
)
if
(
!
filename
.
FileExists
()
)
...
...
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