Commit ad000aef authored by Maciej Suminski's avatar Maciej Suminski
Browse files

Fixed the legacy module editor.

parent 99043b77
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -125,7 +125,7 @@ PCB_BASE_FRAME::~PCB_BASE_FRAME()
{
    delete m_Collector;

    delete m_Pcb;       // is already NULL for FOOTPRINT_EDIT_FRAME
    delete m_Pcb;
    delete GetGalCanvas();
}

+16 −14
Original line number Diff line number Diff line
@@ -268,6 +268,9 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
    m_toolManager->SetEnvironment( GetBoard(), drawPanel->GetView(),
                                   drawPanel->GetViewControls(), this );
    m_toolDispatcher = new TOOL_DISPATCHER( m_toolManager );

    if( drawFrame->IsGalCanvasActive() )
    {
        drawPanel->SetEventDispatcher( m_toolDispatcher );

        m_toolManager->RegisterTool( new SELECTION_TOOL );
@@ -278,11 +281,10 @@ FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME( KIWAY* aKiway, wxWindow* aParent ) :
        m_toolManager->GetTool<SELECTION_TOOL>()->EditModules( true );
        m_toolManager->GetTool<DRAWING_TOOL>()->EditModules( true );
        m_toolManager->ResetTools( TOOL_BASE::RUN );

    // Run the selection tool, it is supposed to be always active
        m_toolManager->InvokeTool( "pcbnew.InteractiveSelection" );

    UseGalCanvas( drawFrame->IsGalCanvasActive() );
        UseGalCanvas( true );
    }

    m_Layers->ReFill();
    m_Layers->ReFillRender();