Fixed segfault occurring on rendering backend switch when pcbnew is run from the main KiCad dialog.

This commit is contained in:
Maciej Suminski 2013-10-30 11:50:09 +01:00
parent 416c44615a
commit c8fc149ae5
1 changed files with 3 additions and 0 deletions

View File

@ -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 );
}