From 00cffb080e1a820d0d77f9e27f0e7f5fc02c4b4b Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Sun, 13 Sep 2015 18:44:07 +0200 Subject: [PATCH] Make call to DXF importer not possible if a footprint does not exist, also in GAL mode. --- pcbnew/tools/drawing_tool.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index 3af20517fd..771ef898a5 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -430,6 +430,9 @@ int DRAWING_TOOL::DrawKeepout( const TOOL_EVENT& aEvent ) int DRAWING_TOOL::PlaceDXF( const TOOL_EVENT& aEvent ) { + if( m_editModules && !m_board->m_Modules ) + return 0; + DIALOG_DXF_IMPORT dlg( m_frame ); int dlgResult = dlg.ShowModal();