Selected items do not disappear after rendering backend switch.

This commit is contained in:
Maciej Suminski 2014-08-04 10:43:26 +02:00
parent fa08d9fdcf
commit 64a9ebc70e
1 changed files with 2 additions and 1 deletions

View File

@ -671,10 +671,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
{