From 45a9b1c00064bc1f0af855225adbef460dadda6e Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Thu, 24 Sep 2015 18:59:10 +0200 Subject: [PATCH] Fixed the build problem introduced in revision 6215. --- pcbnew/basepcbframe.cpp | 1 - pcbnew/pcb_base_edit_frame.cpp | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/pcbnew/basepcbframe.cpp b/pcbnew/basepcbframe.cpp index f310081e62..a5a5f5f489 100644 --- a/pcbnew/basepcbframe.cpp +++ b/pcbnew/basepcbframe.cpp @@ -967,7 +967,6 @@ void PCB_BASE_FRAME::UseGalCanvas( bool aEnable ) if( m_toolManager ) m_toolManager->ResetTools( TOOL_BASE::GAL_SWITCH ); - static_cast( galCanvas )->SyncLayersVisibility( m_Pcb ); galCanvas->GetView()->RecacheAllItems( true ); galCanvas->SetEventDispatcher( m_toolDispatcher ); galCanvas->StartDrawing(); diff --git a/pcbnew/pcb_base_edit_frame.cpp b/pcbnew/pcb_base_edit_frame.cpp index 1987d6510e..fb73923eac 100644 --- a/pcbnew/pcb_base_edit_frame.cpp +++ b/pcbnew/pcb_base_edit_frame.cpp @@ -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( GetGalCanvas() )->SyncLayersVisibility( m_Pcb ); }