Changeset 5524


Ignore:
Timestamp:
08/22/09 16:29:48 (4 years ago)
Author:
werner
Message:

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
Location:
trunk/eda/fped
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/eda/fped/gui_tool.c

    r5522 r5524  
    102102        struct obj **walk; 
    103103 
     104        obj->frame = frame; 
    104105        for (walk = &frame->objs; *walk; walk = &(*walk)->next); 
    105106        *walk = obj; 
  • trunk/eda/fped/obj.c

    r5514 r5524  
    2626 
    2727#define DEFAULT_SILK_WIDTH      make_mil(15)    /* @@@ */ 
     28#define DEFAULT_OFFSET          make_mil(0)     /* @@@ */ 
    2829 
    2930#define MAX_ITERATIONS  1000    /* abort "loop"s at this limit */ 
     
    9596static int generate_objs(struct frame *frame, struct coord base, int active) 
    9697{ 
    97         static const struct num zero_offset = { 
    98                 .type = nt_mm, 
    99                 .exponent = 0, 
    100                 .n = 0, 
    101         }; 
    10298        struct obj *obj; 
    10399        char *name; 
     
    158154                        assert(frame == root_frame); 
    159155                        offset = eval_unit_default(obj->u.meas.offset, frame, 
    160                             zero_offset); 
     156                            DEFAULT_OFFSET); 
    161157                        if (is_undef(offset)) 
    162158                                goto error; 
Note: See TracChangeset for help on using the changeset viewer.