Index: work/util/ttf2lht/drv_poly.c =================================================================== --- work/util/ttf2lht/drv_poly.c (revision 18958) +++ work/util/ttf2lht/drv_poly.c (revision 18959) @@ -103,6 +103,7 @@ { poly_stroke_t *s = (poly_stroke_t *)s_; pcb_pline_t *pl, *next; + int err = 0; pline_close(s); @@ -111,18 +112,22 @@ for(pl = s->pos; pl != NULL; pl = next) { next = pl->next; pl->next = NULL; - if (!pcb_polyarea_contour_include(s->pa, pl)) + if (!pcb_polyarea_contour_include(s->pa, pl)) { fprintf(stderr, "Failed to include positive outline\n"); + err++; + } } for(pl = s->neg; pl != NULL; pl = next) { next = pl->next; pl->next = NULL; - if (!pcb_polyarea_contour_include(s->pa, pl)) + if (!pcb_polyarea_contour_include(s->pa, pl)) { + err++; fprintf(stderr, "Failed to include negative outline\n"); + } } - if (pcb_poly_valid(s->pa)) { + if ((err == 0) && (pcb_poly_valid(s->pa))) { s->spid = 0; printf(" width=%fmil; delta=12.0mil;\n", OTX(&s->s, s->pa->contour_tree->bbox.x2 - s->pa->contour_tree->bbox.x1)); printf(" li:objects {\n");