Disable EE_POINT_EDITOR for uneditable symbol graphics.
Fixes https://gitlab.com/kicad/code/kicad/issues/9675
This commit is contained in:
parent
60a1ca2c67
commit
7bda077f69
|
@ -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 ) )
|
||||
|
|
Loading…
Reference in New Issue