Fixed the build problem introduced in revision 6215.

This commit is contained in:
Maciej Suminski 2015-09-24 18:59:10 +02:00
parent 9bb74e5244
commit 45a9b1c000
2 changed files with 2 additions and 1 deletions

View File

@ -967,7 +967,6 @@ 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();

View File

@ -58,6 +58,8 @@ void PCB_BASE_EDIT_FRAME::UseGalCanvas( bool aEnable )
// No matter what, reenable undo/redo on switching to the legacy canvas
if( !aEnable )
UndoRedoBlock( false );
else
static_cast<PCB_DRAW_PANEL_GAL*>( GetGalCanvas() )->SyncLayersVisibility( m_Pcb );
}