Commit c6743148 authored by Wayne Stambaugh's avatar Wayne Stambaugh

Fix bug when creating initial global footprint library table on Windows.

parent afd6f292
...@@ -772,6 +772,12 @@ bool FP_LIB_TABLE::LoadGlobalTable( FP_LIB_TABLE& aTable ) throw (IO_ERROR, PARS ...@@ -772,6 +772,12 @@ bool FP_LIB_TABLE::LoadGlobalTable( FP_LIB_TABLE& aTable ) throw (IO_ERROR, PARS
{ {
tableExists = false; tableExists = false;
if( !fn.DirExists() && !fn.Mkdir( 0x777, wxPATH_MKDIR_FULL ) )
{
THROW_IO_ERROR( wxString::Format( _( "Cannot create global library table path <%s>." ),
GetChars( fn.GetPath() ) ) );
}
// Attempt to copy the default global file table from the KiCad template folder to // Attempt to copy the default global file table from the KiCad template folder to
// the users home configuration path. // the users home configuration path.
wxString fileName( wxT( "fp_global_table" ) ); wxString fileName( wxT( "fp_global_table" ) );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment