From efd4c123eb33ad7cf2d608723eb51d0e403d6e55 Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 14 Sep 2014 19:12:56 +0200 Subject: [PATCH] Fix bug #1369281 ( Pcbnew, initial save broken ) --- pcbnew/files.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pcbnew/files.cpp b/pcbnew/files.cpp index 45c2d17c9e..cb3660e751 100644 --- a/pcbnew/files.cpp +++ b/pcbnew/files.cpp @@ -316,9 +316,12 @@ void PCB_EDIT_FRAME::Files_io( wxCommandEvent& event ) break; case ID_SAVE_BOARD: - SavePcbFile( Prj().AbsolutePath( GetBoard()->GetFileName() ) ); - break; - + if( ! GetBoard()->GetFileName().IsEmpty() ) + { + SavePcbFile( Prj().AbsolutePath( GetBoard()->GetFileName() ) ); + break; + } + // Fall through case ID_SAVE_BOARD_AS: { wxString pro_dir = wxPathOnly( Prj().GetProjectFullName() );