From 49aff8bcf77339fa2be6ceb9c2b226355e31d87c Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Fri, 29 Aug 2014 08:46:14 +0200 Subject: [PATCH] LibEdit: fix bug #1362580 (EESchema crashes on new library save). --- eeschema/lib_export.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ ) {