pcbnew: Fix crashes of tools that rely on BOARD data.

This commit is contained in:
Maciej Suminski 2014-09-08 14:07:10 +02:00
parent 9195409f5e
commit 16b2c40184
1 changed files with 1 additions and 1 deletions

View File

@ -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
{