Index: trunk/src_plugins/draw_fab/draw_fab.c =================================================================== --- trunk/src_plugins/draw_fab/draw_fab.c (revision 15500) +++ trunk/src_plugins/draw_fab/draw_fab.c (revision 15501) @@ -211,13 +211,8 @@ for (i = 0; i < drill->PinN; i++) { int unplated = 1; pcb_coord_t x, y; - if ((drill->hole[i]->type == PCB_OBJ_PIN) || (drill->hole[i]->type == PCB_OBJ_VIA)) { - pcb_pin_t *pin = (pcb_pin_t *)drill->hole[i]; - unplated = PCB_FLAG_TEST(PCB_FLAG_HOLE, pin); - x = pin->X; - y = pin->Y; - } - else if (drill->hole[i]->type == PCB_OBJ_PSTK) { + assert(drill->hole[i]->type == PCB_OBJ_PSTK); + { pcb_pstk_t *ps = (pcb_pstk_t *)drill->hole[i]; pcb_pstk_proto_t *proto = pcb_pstk_get_proto(ps); unplated = !proto->hplated;