Browse Source

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

pull/5/head
Chris Pavlina 11 years ago
committed by Wayne Stambaugh
parent
commit
872a43ff92
  1. 4
      pcbnew/files.cpp

4
pcbnew/files.cpp

@ -813,7 +813,9 @@ bool PCB_EDIT_FRAME::doAutoSave()
wxLogTrace( traceAutoSave,
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();
GetBoard()->SetFileName( tmpFileName.GetFullPath() );

Loading…
Cancel
Save