Fix assert in footprint editor

PCB_EDIT_FRAME does not return for footprint editor.  The
PCB_EDIT_BASE_FRAME is needed for common fns between pcbnew and modedit
This commit is contained in:
Seth Hillbrand 2019-07-10 22:34:30 -07:00
parent 39954b20fe
commit c86b4928a7
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ ZONE_CREATE_HELPER::~ZONE_CREATE_HELPER()
std::unique_ptr<ZONE_CONTAINER> ZONE_CREATE_HELPER::createNewZone( bool aKeepout )
{
auto& frame = *m_tool.getEditFrame<PCB_BASE_EDIT_FRAME>();
auto& frame = *m_tool.getEditFrame<PCB_BASE_FRAME>();
auto& board = *m_tool.getModel<BOARD>();
KIGFX::VIEW_CONTROLS* controls = m_tool.GetManager()->GetViewControls();
@ -160,7 +160,7 @@ void ZONE_CREATE_HELPER::performZoneCutout( ZONE_CONTAINER& aZone, ZONE_CONTAINE
void ZONE_CREATE_HELPER::commitZone( std::unique_ptr<ZONE_CONTAINER> aZone )
{
auto& frame = *m_tool.getEditFrame<PCB_EDIT_FRAME>();
auto& frame = *m_tool.getEditFrame<PCB_BASE_EDIT_FRAME>();
auto board = m_tool.getModel<BOARD>();
switch ( m_params.m_mode )