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
b35fbc0a
Commit
b35fbc0a
authored
Nov 06, 2013
by
Wayne Stambaugh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set project footprint library table path environment variable before loading table.
parent
0d69a817
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
cfg.cpp
cvpcb/cfg.cpp
+1
-1
pcbnew_config.cpp
pcbnew/pcbnew_config.cpp
+2
-2
No files found.
cvpcb/cfg.cpp
View file @
b35fbc0a
...
...
@@ -101,11 +101,11 @@ void CVPCB_MAINFRAME::LoadProjectFile( const wxString& aFileName )
wxFileName
projectFpLibTableFileName
;
projectFpLibTableFileName
=
FP_LIB_TABLE
::
GetProjectFileName
(
fn
);
FP_LIB_TABLE
::
SetProjectPathEnvVariable
(
projectFpLibTableFileName
);
try
{
m_footprintLibTable
->
Load
(
projectFpLibTableFileName
,
m_globalFootprintTable
);
FP_LIB_TABLE
::
SetProjectPathEnvVariable
(
projectFpLibTableFileName
);
}
catch
(
IO_ERROR
ioe
)
{
...
...
pcbnew/pcbnew_config.cpp
View file @
b35fbc0a
...
...
@@ -249,6 +249,8 @@ bool PCB_EDIT_FRAME::LoadProjectSettings( const wxString& aProjectFileName )
// Check if a project footprint table is defined and load it. If no project footprint
// table is defined, then the global library table is the footprint library table.
#if defined( USE_FP_LIB_TABLE )
FP_LIB_TABLE
::
SetProjectPathEnvVariable
(
fn
);
delete
m_footprintLibTable
;
wxFileName
projectFpLibTableFileName
;
...
...
@@ -274,8 +276,6 @@ bool PCB_EDIT_FRAME::LoadProjectSettings( const wxString& aProjectFileName )
if
(
viewFrame
)
viewFrame
->
SetFootprintLibTable
(
m_footprintLibTable
);
FP_LIB_TABLE
::
SetProjectPathEnvVariable
(
fn
);
#endif
// Load the page layout decr file, from the filename stored in
...
...
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