Pcbnew: assertion work around when automatically saving an unnamed file.

This commit is contained in:
Chris Pavlina 2015-06-19 09:27:06 -04:00 committed by Wayne Stambaugh
parent 4464032b6d
commit 872a43ff92
1 changed files with 3 additions and 1 deletions

View File

@ -813,7 +813,9 @@ bool PCB_EDIT_FRAME::doAutoSave()
wxLogTrace( traceAutoSave, wxLogTrace( traceAutoSave,
wxT( "Creating auto save file <" + fn.GetFullPath() ) + wxT( ">" ) ); wxT( "Creating auto save file <" + fn.GetFullPath() ) + wxT( ">" ) );
if( SavePcbFile( fn.GetFullPath(), NO_BACKUP_FILE ) ) if( !fn.IsOk() )
return false;
else if( SavePcbFile( fn.GetFullPath(), NO_BACKUP_FILE ) )
{ {
GetScreen()->SetModify(); GetScreen()->SetModify();
GetBoard()->SetFileName( tmpFileName.GetFullPath() ); GetBoard()->SetFileName( tmpFileName.GetFullPath() );