From c86b4928a72b36a61449bfebee885b2f8bd2c9b8 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 10 Jul 2019 22:34:30 -0700 Subject: [PATCH] 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 --- pcbnew/tools/zone_create_helper.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/tools/zone_create_helper.cpp b/pcbnew/tools/zone_create_helper.cpp index 1fc024cb1d..e4947ef40d 100644 --- a/pcbnew/tools/zone_create_helper.cpp +++ b/pcbnew/tools/zone_create_helper.cpp @@ -56,7 +56,7 @@ ZONE_CREATE_HELPER::~ZONE_CREATE_HELPER() std::unique_ptr ZONE_CREATE_HELPER::createNewZone( bool aKeepout ) { - auto& frame = *m_tool.getEditFrame(); + auto& frame = *m_tool.getEditFrame(); auto& board = *m_tool.getModel(); 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 aZone ) { - auto& frame = *m_tool.getEditFrame(); + auto& frame = *m_tool.getEditFrame(); auto board = m_tool.getModel(); switch ( m_params.m_mode )