Do not run DRAWING_TOOL::PlaceTuningPattern() inside the footprint editor
The footprint editor cannot run the router. Fixes https://gitlab.com/kicad/code/kicad/-/issues/17522
This commit is contained in:
parent
8bdc62c111
commit
dfe6cb7afa
|
@ -2143,6 +2143,9 @@ using SCOPED_DRAW_MODE = SCOPED_SET_RESET<DRAWING_TOOL::MODE>;
|
|||
|
||||
int DRAWING_TOOL::PlaceTuningPattern( const TOOL_EVENT& aEvent )
|
||||
{
|
||||
if( m_isFootprintEditor )
|
||||
return 0;
|
||||
|
||||
if( m_inDrawingTool )
|
||||
return 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue