Index: trunk/src_plugins/export_gcode/gcode.c =================================================================== --- trunk/src_plugins/export_gcode/gcode.c (revision 17247) +++ trunk/src_plugins/export_gcode/gcode.c (revision 17248) @@ -669,11 +669,14 @@ type = 'C'; r = pcb_to_gcode(gc->width / 2 + gcode_toolradius); break; - default: case pcb_cap_square: r = pcb_to_gcode(gc->width + gcode_toolradius * 2); type = 'S'; break; + default: + assert(!"unhandled cap"); + r = 1; + type = 'C'; } sprintf(name, "#%.2x%.2x%.2x_%c_%d", gc->color->r, gc->color->g, gc->color->b, type, r); Index: trunk/src_plugins/export_gerber/gerber.c =================================================================== --- trunk/src_plugins/export_gerber/gerber.c (revision 17247) +++ trunk/src_plugins/export_gerber/gerber.c (revision 17248) @@ -960,10 +960,12 @@ case pcb_cap_round: shape = ROUND; break; - default: case pcb_cap_square: shape = SQUARE; break; + default: + assert(!"unhandled cap"); + shape = ROUND; } aptr = findAperture(curr_aptr_list, linewidth, shape); if (aptr == NULL) Index: trunk/src_plugins/export_nelma/nelma.c =================================================================== --- trunk/src_plugins/export_nelma/nelma.c (revision 17247) +++ trunk/src_plugins/export_nelma/nelma.c (revision 17248) @@ -775,11 +775,14 @@ type = 'C'; r = pcb_to_nelma(gc->width / 2); break; - default: case pcb_cap_square: r = pcb_to_nelma(gc->width); type = 'S'; break; + default: + assert(!"unhandled cap"); + type = 'C'; + r = 1; } sprintf(name, "#%.2x%.2x%.2x_%c_%d", gc->color->r, gc->color->g, gc->color->b, type, r); Index: trunk/src_plugins/export_png/png.c =================================================================== --- trunk/src_plugins/export_png/png.c (revision 17247) +++ trunk/src_plugins/export_png/png.c (revision 17248) @@ -1477,10 +1477,12 @@ case pcb_cap_round: type = 'C'; break; - default: case pcb_cap_square: type = 'S'; break; + default: + assert(!"unhandled cap"); + type = 'C'; } if (gc->width) r = SCALE(gc->width + 2 * bloat); Index: trunk/src_plugins/export_ps/eps.c =================================================================== --- trunk/src_plugins/export_ps/eps.c (revision 17247) +++ trunk/src_plugins/export_ps/eps.c (revision 17248) @@ -494,10 +494,12 @@ case pcb_cap_round: c = 1; break; - default: case pcb_cap_square: c = 2; break; + default: + assert(!"unhandled cap"); + c = 1; } fprintf(f, "%d setlinecap\n", c); lastcap = gc->cap; Index: trunk/src_plugins/export_ps/ps.c =================================================================== --- trunk/src_plugins/export_ps/ps.c (revision 17247) +++ trunk/src_plugins/export_ps/ps.c (revision 17248) @@ -1041,10 +1041,12 @@ case pcb_cap_round: c = 1; break; - default: case pcb_cap_square: c = 2; break; + default: + assert(!"unhandled cap"); + c = 1; } fprintf(global.f, "%d setlinecap %d setlinejoin\n", c, c); lastcap = gc->cap; Index: trunk/src_plugins/export_svg/svg.c =================================================================== --- trunk/src_plugins/export_svg/svg.c (revision 17247) +++ trunk/src_plugins/export_svg/svg.c (revision 17248) @@ -84,6 +84,9 @@ return "round"; case pcb_cap_square: return "square"; + default: + assert(!"unhandled cap"); + return "round"; } return ""; } Index: trunk/src_plugins/hid_gtk2_gdk/gtkhid-gdk.c =================================================================== --- trunk/src_plugins/hid_gtk2_gdk/gtkhid-gdk.c (revision 17247) +++ trunk/src_plugins/hid_gtk2_gdk/gtkhid-gdk.c (revision 17248) @@ -601,6 +601,10 @@ gc->cap = GDK_CAP_PROJECTING; gc->join = GDK_JOIN_MITER; break; + default: + assert(!"unhandled cap"); + gc->cap = GDK_CAP_ROUND; + gc->join = GDK_JOIN_ROUND; } if (gc->pixel_gc) gdk_gc_set_line_attributes(gc->pixel_gc, Vz(gc->width), GDK_LINE_SOLID, (GdkCapStyle) gc->cap, (GdkJoinStyle) gc->join); Index: trunk/src_plugins/hid_gtk3_cairo/gtkhid-cairo.c =================================================================== --- trunk/src_plugins/hid_gtk3_cairo/gtkhid-cairo.c (revision 17247) +++ trunk/src_plugins/hid_gtk3_cairo/gtkhid-cairo.c (revision 17248) @@ -766,6 +766,8 @@ cap = CAIRO_LINE_CAP_SQUARE; join = CAIRO_LINE_JOIN_MITER; break; + default: + assert(!"unhandled cap"); } gc->cap = cap; gc->join = join; Index: trunk/src_plugins/hid_lesstif/main.c =================================================================== --- trunk/src_plugins/hid_lesstif/main.c (revision 17247) +++ trunk/src_plugins/hid_lesstif/main.c (revision 17248) @@ -3006,9 +3006,9 @@ join = JoinRound; break; default: - cap = CapProjecting; - join = JoinBevel; - break; + assert(!"unhandled cap"); + cap = CapRound; + join = JoinRound; } if (gc->xor_set) { XSetFunction(display, my_gc, GXxor); Index: trunk/src_plugins/lib_hid_gl/hidgl.c =================================================================== --- trunk/src_plugins/lib_hid_gl/hidgl.c (revision 17247) +++ trunk/src_plugins/lib_hid_gl/hidgl.c (revision 17248) @@ -339,6 +339,10 @@ x2 += deltax * width / 2. / length; y2 += deltay * width / 2. / length; break; + + default: + assert(!"unhandled cap"); + circular_caps = 1; } drawgl_add_triangle(x1 - wdx, y1 - wdy, x2 - wdx, y2 - wdy, x2 + wdx, y2 + wdy);