kicad/pcbnew/import_dxf
Wayne Stambaugh f14dc8f2be Pcbnew: fix epic footprint editor DXF import fail.
The unfortunate combination of using static_cast to promote board items
to module items then using the assignment operator without any thought as
to what would happen in MODULE::Add() caused the board objects to not be
added to the module.  This is expected because board items cannot be in
modules.  Did this ever work or did someone have a colossal brain cramp?
If it did work, who ever changed it did not test it because in debug
builds, you would have gotten and assertion on every object imported.  On
release builds nothing is imported silently.

Add module object types to the DXF importer and code to choose which type
of object to import.

Remove offending static casts and assignment operator and pass the correct
object directly to the MODULE::Add() function when importing DXF in the
footprint editor.

The usual coding policy fixes.
2016-10-07 21:10:51 -04:00
..
examples Fix to closing polylines in DXF imports. 2015-06-18 17:51:17 +02:00
dialog_dxf_import.cpp Pcbnew: fix epic footprint editor DXF import fail. 2016-10-07 21:10:51 -04:00
dialog_dxf_import.fbp Pcbnew: add user position option to DXF import dialog. 2015-08-27 14:10:28 -04:00
dialog_dxf_import.h Pcbnew: fix epic footprint editor DXF import fail. 2016-10-07 21:10:51 -04:00
dialog_dxf_import_base.cpp Pcbnew: add user position option to DXF import dialog. 2015-08-27 14:10:28 -04:00
dialog_dxf_import_base.h Pcbnew: add user position option to DXF import dialog. 2015-08-27 14:10:28 -04:00
dxf2brd_items.cpp Pcbnew: fix epic footprint editor DXF import fail. 2016-10-07 21:10:51 -04:00
dxf2brd_items.h Pcbnew: fix epic footprint editor DXF import fail. 2016-10-07 21:10:51 -04:00