Synchronize layers visibility on canvas switch.

This commit is contained in:
Maciej Suminski 2015-09-24 18:34:22 +02:00
parent f2807035df
commit 9bb74e5244
1 changed files with 1 additions and 0 deletions

View File

@ -967,6 +967,7 @@ void PCB_BASE_FRAME::UseGalCanvas( bool aEnable )
if( m_toolManager )
m_toolManager->ResetTools( TOOL_BASE::GAL_SWITCH );
static_cast<PCB_DRAW_PANEL_GAL*>( galCanvas )->SyncLayersVisibility( m_Pcb );
galCanvas->GetView()->RecacheAllItems( true );
galCanvas->SetEventDispatcher( m_toolDispatcher );
galCanvas->StartDrawing();