mirror of
git://projects.qi-hardware.com/fped.git
synced 2024-11-25 19:02:29 +02:00
Bug-fixing ...
- obj.c: embarrasingly, the default offset wasn't a distance - connect_obj: didn't update the object's frame pointer, deeply confusing deletion git-svn-id: http://svn.openmoko.org/trunk/eda/fped@5524 99fdad57-331a-0410-800a-d7fa5415bdb3
This commit is contained in:
parent
60147b98e2
commit
18be341c2d
@ -101,6 +101,7 @@ void connect_obj(struct frame *frame, struct obj *obj)
|
||||
{
|
||||
struct obj **walk;
|
||||
|
||||
obj->frame = frame;
|
||||
for (walk = &frame->objs; *walk; walk = &(*walk)->next);
|
||||
*walk = obj;
|
||||
}
|
||||
|
8
obj.c
8
obj.c
@ -25,6 +25,7 @@
|
||||
|
||||
|
||||
#define DEFAULT_SILK_WIDTH make_mil(15) /* @@@ */
|
||||
#define DEFAULT_OFFSET make_mil(0) /* @@@ */
|
||||
|
||||
#define MAX_ITERATIONS 1000 /* abort "loop"s at this limit */
|
||||
|
||||
@ -94,11 +95,6 @@ error:
|
||||
|
||||
static int generate_objs(struct frame *frame, struct coord base, int active)
|
||||
{
|
||||
static const struct num zero_offset = {
|
||||
.type = nt_mm,
|
||||
.exponent = 0,
|
||||
.n = 0,
|
||||
};
|
||||
struct obj *obj;
|
||||
char *name;
|
||||
int ok;
|
||||
@ -157,7 +153,7 @@ static int generate_objs(struct frame *frame, struct coord base, int active)
|
||||
case ot_meas:
|
||||
assert(frame == root_frame);
|
||||
offset = eval_unit_default(obj->u.meas.offset, frame,
|
||||
zero_offset);
|
||||
DEFAULT_OFFSET);
|
||||
if (is_undef(offset))
|
||||
goto error;
|
||||
inst_meas_hint(obj, offset.n);
|
||||
|
Loading…
Reference in New Issue
Block a user