Fixed the build problem introduced in revision 6215.
This commit is contained in:
parent
9bb74e5244
commit
45a9b1c000
|
@ -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();
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue