pcbnew: Fix crashes of tools that rely on BOARD data.
This commit is contained in:
parent
9195409f5e
commit
16b2c40184
|
@ -687,11 +687,11 @@ void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable )
|
|||
|
||||
if( aEnable )
|
||||
{
|
||||
SetBoard( m_Pcb );
|
||||
m_toolManager->ResetTools( TOOL_BASE::GAL_SWITCH );
|
||||
GetGalCanvas()->GetView()->RecacheAllItems( true );
|
||||
GetGalCanvas()->SetEventDispatcher( m_toolDispatcher );
|
||||
GetGalCanvas()->StartDrawing();
|
||||
SetBoard( m_Pcb );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue