From c8fc149ae5a6cd291fe7e7f153e79bad41866567 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 30 Oct 2013 11:50:09 +0100 Subject: [PATCH] Fixed segfault occurring on rendering backend switch when pcbnew is run from the main KiCad dialog. --- pcbnew/basepcbframe.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/basepcbframe.cpp b/pcbnew/basepcbframe.cpp index 842b70f72d..12ebdf4741 100644 --- a/pcbnew/basepcbframe.cpp +++ b/pcbnew/basepcbframe.cpp @@ -599,6 +599,9 @@ void PCB_BASE_FRAME::UseGalCanvas( bool aEnable ) { EDA_DRAW_FRAME::UseGalCanvas( aEnable ); + m_toolManager->SetEnvironment( m_Pcb, m_galCanvas->GetView(), + m_galCanvas->GetViewControls(), this ); + ViewReloadBoard( m_Pcb ); }