Don't allow the draw via tool to activate in the footprint editor

Fix #9186
This commit is contained in:
Marek Roszko 2021-09-17 23:01:16 -04:00
parent 34c2bd58d1
commit 847c9e32c8
1 changed files with 3 additions and 0 deletions

View File

@ -2263,6 +2263,9 @@ int DRAWING_TOOL::DrawZone( const TOOL_EVENT& aEvent )
int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent ) int DRAWING_TOOL::DrawVia( const TOOL_EVENT& aEvent )
{ {
if( m_isFootprintEditor )
return 0;
struct VIA_PLACER : public INTERACTIVE_PLACER_BASE struct VIA_PLACER : public INTERACTIVE_PLACER_BASE
{ {
PCB_BASE_EDIT_FRAME* m_frame; PCB_BASE_EDIT_FRAME* m_frame;