diff --git a/pcbnew/tools/drawing_tool.cpp b/pcbnew/tools/drawing_tool.cpp index bb8143f402..de83856853 100644 --- a/pcbnew/tools/drawing_tool.cpp +++ b/pcbnew/tools/drawing_tool.cpp @@ -435,7 +435,7 @@ int DRAWING_TOOL::PlaceDXF( const TOOL_EVENT& aEvent ) const std::list& list = dlg.GetImportedItems(); - if( dlgResult != wxID_OK || m_board->m_Modules == NULL || list.empty() ) + if( dlgResult != wxID_OK || list.empty() ) return 0; VECTOR2I cursorPos = m_controls->GetCursorPosition();