mirror of
git://projects.qi-hardware.com/fped.git
synced 2025-04-21 12:27:27 +03:00
When creating an object in the GUI, its label wasn't initialized. Added
infrastructure for hole objects. (Postscript and KiCad output are still missing, and so does sanity checking.) - gui_tool.c (new_obj_unconnected): set obj->name to NULL - added hole objects to tool bar, all the various GUI routines, the .fpd parser, and the .fpd dumper git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5939 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
8
obj.c
8
obj.c
@@ -112,6 +112,9 @@ int obj_anchors(struct obj *obj, struct vec ***anchors)
|
||||
case ot_pad:
|
||||
anchors[1] = &obj->u.pad.other;
|
||||
return 2;
|
||||
case ot_hole:
|
||||
anchors[1] = &obj->u.hole.other;
|
||||
return 2;
|
||||
case ot_meas:
|
||||
anchors[1] = &obj->u.meas.high;
|
||||
return 2;
|
||||
@@ -234,6 +237,11 @@ static int generate_objs(struct frame *frame, struct coord base, int active)
|
||||
if (!ok)
|
||||
goto error;
|
||||
break;
|
||||
case ot_hole:
|
||||
if (!inst_hole(obj, obj->base ? obj->base->pos : base,
|
||||
obj->u.hole.other ? obj->u.hole.other->pos : base))
|
||||
goto error;
|
||||
break;
|
||||
case ot_arc:
|
||||
width = eval_unit_default(obj->u.arc.width, frame,
|
||||
DEFAULT_SILK_WIDTH);
|
||||
|
||||
Reference in New Issue
Block a user