Index: svg.c =================================================================== --- svg.c (revision 21672) +++ svg.c (revision 21673) @@ -484,12 +484,17 @@ return NULL; } -static void svg_set_color(pcb_hid_gc_t gc, const char *name) +static void svg_set_color(pcb_hid_gc_t gc, const pcb_color_t *color) { + const char *name; gc->drill = 0; - if (name == NULL) + + if (color == NULL) name = "#ff0000"; - if (strcmp(name, "drill") == 0) { + else + name = color->str; + + if (pcb_color_is_drill(color)) { name = "#ffffff"; gc->drill = 1; }