Fix bug #1369281 ( Pcbnew, initial save broken )

This commit is contained in:
jean-pierre charras 2014-09-14 19:12:56 +02:00
parent c1e0a8d067
commit efd4c123eb
1 changed files with 6 additions and 3 deletions

View File

@ -316,9 +316,12 @@ void PCB_EDIT_FRAME::Files_io( wxCommandEvent& event )
break;
case ID_SAVE_BOARD:
if( ! GetBoard()->GetFileName().IsEmpty() )
{
SavePcbFile( Prj().AbsolutePath( GetBoard()->GetFileName() ) );
break;
}
// Fall through
case ID_SAVE_BOARD_AS:
{
wxString pro_dir = wxPathOnly( Prj().GetProjectFullName() );