Fixed crash on "Cleanup Track and Vias" when GAL canvas is active.

This commit is contained in:
Maciej Suminski 2015-09-07 14:02:02 +02:00
parent 7b0d597f6d
commit b98d745336
1 changed files with 3 additions and 0 deletions

View File

@ -120,6 +120,9 @@ void PCB_EDIT_FRAME::Clean_Pcb()
if( dlg.ShowModal() != wxID_OK )
return;
if( IsGalCanvasActive() )
Compile_Ratsnest( NULL, false );
wxBusyCursor( dummy );
TRACKS_CLEANER cleaner( GetBoard() );