Forgotten in rev 6189: Make call to DXF importer not possible if a footprint does not exist, also in GAL mode. (Workaround for bug #1384902: SIGSEGV when importing DXF in footprint editor)
This commit is contained in:
commit
bb045e18b3
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue