From fa15f8aa0ceccd2f9da1ab69151f9d7c39aeaeaa Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Mon, 28 Aug 2023 14:57:28 -0700 Subject: [PATCH] Fix compile error wxMkDir's mode is required for linux but not windows (yay) --- pcbnew/dialogs/panel_fp_lib_table.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/pcbnew/dialogs/panel_fp_lib_table.cpp b/pcbnew/dialogs/panel_fp_lib_table.cpp index 53493fb235..79b822868e 100644 --- a/pcbnew/dialogs/panel_fp_lib_table.cpp +++ b/pcbnew/dialogs/panel_fp_lib_table.cpp @@ -838,8 +838,8 @@ void PANEL_FP_LIB_TABLE::onMigrateLibraries( wxCommandEvent& event ) } -bool PANEL_FP_LIB_TABLE::convertLibrary( STRING_UTF8_MAP* aOldFileProps, - const wxString& aOldFilePath, +bool PANEL_FP_LIB_TABLE::convertLibrary( STRING_UTF8_MAP* aOldFileProps, + const wxString& aOldFilePath, const wxString& aNewFilePath) { IO_MGR::PCB_FILE_T oldFileType = IO_MGR::GuessPluginTypeFromLibPath( aOldFilePath ); @@ -847,7 +847,7 @@ bool PANEL_FP_LIB_TABLE::convertLibrary( STRING_UTF8_MAP* aOldFileProps, if( oldFileType == IO_MGR::FILE_TYPE_NONE ) return false; - + PLUGIN::RELEASER oldFilePI( IO_MGR::PluginFind( oldFileType ) ); PLUGIN::RELEASER kicadPI( IO_MGR::PluginFind( IO_MGR::KICAD_SEXP ) ); wxArrayString fpNames; @@ -856,13 +856,13 @@ bool PANEL_FP_LIB_TABLE::convertLibrary( STRING_UTF8_MAP* aOldFileProps, try { if( !newFileName.DirExists() ) - wxMkDir( aNewFilePath ); + wxMkDir( aNewFilePath, wxS_DIR_DEFAULT ); bool bestEfforts = false; // throw on first error oldFilePI->FootprintEnumerate( fpNames, aOldFilePath, bestEfforts, aOldFileProps ); - for ( const wxString& fpName : fpNames ) - { + for ( const wxString& fpName : fpNames ) + { std::unique_ptr fp( oldFilePI->GetEnumeratedFootprint( aOldFilePath, fpName, aOldFileProps ) ); kicadPI->FootprintSave( aNewFilePath, fp.get() ); }