Pcbnew: assertion work around when automatically saving an unnamed file.
This commit is contained in:
parent
4464032b6d
commit
872a43ff92
|
@ -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() );
|
||||||
|
|
Loading…
Reference in New Issue