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 c5c65f23a4
commit 4f4ca9f383
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 )
{
if( m_isFootprintEditor )
return 0;
if( m_inDrawingTool )
return 0;