Fixed crash on "Cleanup Track and Vias" when GAL canvas is active.
This commit is contained in:
parent
7b0d597f6d
commit
b98d745336
|
@ -120,6 +120,9 @@ void PCB_EDIT_FRAME::Clean_Pcb()
|
||||||
if( dlg.ShowModal() != wxID_OK )
|
if( dlg.ShowModal() != wxID_OK )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if( IsGalCanvasActive() )
|
||||||
|
Compile_Ratsnest( NULL, false );
|
||||||
|
|
||||||
wxBusyCursor( dummy );
|
wxBusyCursor( dummy );
|
||||||
TRACKS_CLEANER cleaner( GetBoard() );
|
TRACKS_CLEANER cleaner( GetBoard() );
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue