Commit cf752a58 authored by charras's avatar charras

fixed in modedit: save module not working

parent e719b42e
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
#endif #endif
#include "fctsys.h" #include "fctsys.h"
#include "appl_wxstruct.h"
#include "class_drawpanel.h" #include "class_drawpanel.h"
#include "confirm.h" #include "confirm.h"
#include "gestfich.h" #include "gestfich.h"
...@@ -231,8 +232,9 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event ) ...@@ -231,8 +232,9 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
case ID_MODEDIT_SAVE_LIBMODULE: case ID_MODEDIT_SAVE_LIBMODULE:
{ {
wxFileName fn; wxFileName fn;
fn = wxFileName( g_RealLibDirBuffer, m_CurrentLib, ModuleFileExtension ); fn = wxFileName( wxEmptyString, m_CurrentLib, ModuleFileExtension );
Save_Module_In_Library( fn.GetFullPath(), GetBoard()->m_Modules, wxString full_filename = wxGetApp().GetLibraryPathList().FindValidPath( fn.GetFullName() );
Save_Module_In_Library( full_filename, GetBoard()->m_Modules,
true, true, true ); true, true, true );
GetScreen()->ClrModify(); GetScreen()->ClrModify();
break; break;
......
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