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:
jean-pierre charras 2024-03-21 15:19:48 +01:00
parent 8bdc62c111
commit dfe6cb7afa
1 changed files with 3 additions and 0 deletions

View File

@ -2143,6 +2143,9 @@ using SCOPED_DRAW_MODE = SCOPED_SET_RESET<DRAWING_TOOL::MODE>;
int DRAWING_TOOL::PlaceTuningPattern( const TOOL_EVENT& aEvent ) int DRAWING_TOOL::PlaceTuningPattern( const TOOL_EVENT& aEvent )
{ {
if( m_isFootprintEditor )
return 0;
if( m_inDrawingTool ) if( m_inDrawingTool )
return 0; return 0;