diff --git a/eeschema/lib_export.cpp b/eeschema/lib_export.cpp index 5b00024a83..8f3001a348 100644 --- a/eeschema/lib_export.cpp +++ b/eeschema/lib_export.cpp @@ -136,7 +136,7 @@ void LIB_EDIT_FRAME::OnExportPart( wxCommandEvent& event ) { FILE_OUTPUTFORMATTER formatter( fn.GetFullPath() ); - result = GetCurLib()->Save( formatter ); + result = temp_lib.get()->Save( formatter ); } catch( ... /* IO_ERROR ioe */ ) {