Disable EE_POINT_EDITOR for uneditable symbol graphics.

Fixes https://gitlab.com/kicad/code/kicad/issues/9675
This commit is contained in:
Jeff Young 2021-11-18 15:33:05 +00:00
parent 60a1ca2c67
commit 7bda077f69
1 changed files with 8 additions and 0 deletions

View File

@ -284,6 +284,14 @@ int EE_POINT_EDITOR::Main( const TOOL_EVENT& aEvent )
if( !m_selectionTool )
return 0;
if( m_isSymbolEditor )
{
SYMBOL_EDIT_FRAME* editor = getEditFrame<SYMBOL_EDIT_FRAME>();
if( !editor->IsSymbolEditable() || editor->IsSymbolAlias() )
return 0;
}
const EE_SELECTION& selection = m_selectionTool->GetSelection();
if( selection.Size() != 1 || !selection.Front()->IsType( supportedTypes ) )