From 7bda077f6992ffeb83b4295e560660ce7384f973 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Thu, 18 Nov 2021 15:33:05 +0000 Subject: [PATCH] Disable EE_POINT_EDITOR for uneditable symbol graphics. Fixes https://gitlab.com/kicad/code/kicad/issues/9675 --- eeschema/tools/ee_point_editor.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/eeschema/tools/ee_point_editor.cpp b/eeschema/tools/ee_point_editor.cpp index e8a42af078..7eabdb3b71 100644 --- a/eeschema/tools/ee_point_editor.cpp +++ b/eeschema/tools/ee_point_editor.cpp @@ -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(); + + if( !editor->IsSymbolEditable() || editor->IsSymbolAlias() ) + return 0; + } + const EE_SELECTION& selection = m_selectionTool->GetSelection(); if( selection.Size() != 1 || !selection.Front()->IsType( supportedTypes ) )