Skip to content

Commit

Permalink
fped: mechanical holes had incorrect layers
Browse files Browse the repository at this point in the history
- inst.c (inst_hole): set inst->u.hole.layers, not inst->u.pad.layers
- layer.c (mech_hole_layers): holes don't need solder paste
  • Loading branch information
Werner Almesberger committed Mar 24, 2011
1 parent 81a670b commit 4fb1be1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion eda/fped/inst.c
Original file line number Diff line number Diff line change
Expand Up @@ -934,7 +934,7 @@ int inst_hole(struct obj *obj, struct coord a, struct coord b)
inst = add_inst(&hole_ops, ip_hole, a);
inst->obj = obj;
inst->u.hole.other = b;
inst->u.pad.layers = mech_hole_layers();
inst->u.hole.layers = mech_hole_layers();
find_inst(inst);
update_bbox(&inst->bbox, b);
propagate_bbox(inst);
Expand Down
3 changes: 1 addition & 2 deletions eda/fped/layer.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,7 @@ enum pad_type layers_to_pad_type(layer_type layers)

layer_type mech_hole_layers(void)
{
return LAYER_PASTE_TOP | LAYER_PASTE_BOTTOM |
LAYER_MASK_TOP | LAYER_MASK_BOTTOM;
return LAYER_MASK_TOP | LAYER_MASK_BOTTOM;
}


Expand Down

0 comments on commit 4fb1be1

Please sign in to comment.