Commit 7f464814 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Ratsnest is updated after backend switch.

parent 3827f495
Loading
Loading
Loading
Loading
+3 −0
Original line number Original line Diff line number Diff line
@@ -742,6 +742,9 @@ void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable )


    if( aEnable )
    if( aEnable )
    {
    {
        // Update potential changes in the ratsnest
        m_Pcb->GetRatsnest()->Recalculate();

        m_toolManager->SetEnvironment( m_Pcb, GetGalCanvas()->GetView(),
        m_toolManager->SetEnvironment( m_Pcb, GetGalCanvas()->GetView(),
                                       GetGalCanvas()->GetViewControls(), this );
                                       GetGalCanvas()->GetViewControls(), this );
        m_toolManager->ResetTools( TOOL_BASE::GAL_SWITCH );
        m_toolManager->ResetTools( TOOL_BASE::GAL_SWITCH );