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
c5c65f23a4
commit
4f4ca9f383
|
@ -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