423 |
elemstyle->icon->filename); |
elemstyle->icon->filename); |
424 |
|
|
425 |
/* free old icon if there's one present */ |
/* free old icon if there's one present */ |
426 |
if(node->icon_buf) |
if(node->icon_buf) { |
427 |
icon_free(style->iconP, node->icon_buf); |
icon_free(style->iconP, node->icon_buf); |
428 |
|
node->icon_buf = NULL; |
429 |
|
} |
430 |
|
|
431 |
node->icon_buf = icon_load(style->iconP, name); |
node->icon_buf = icon_load(style->iconP, name); |
432 |
g_free(name); |
g_free(name); |
593 |
/* icons */ |
/* icons */ |
594 |
node_t *node = osm->node; |
node_t *node = osm->node; |
595 |
while(node) { |
while(node) { |
596 |
|
/* remove all icon references that may still be there from */ |
597 |
|
/* an old style */ |
598 |
|
if(node->icon_buf) { |
599 |
|
icon_free(styles->iconP, node->icon_buf); |
600 |
|
node->icon_buf = NULL; |
601 |
|
} |
602 |
|
|
603 |
josm_elemstyles_colorize_node(styles, node); |
josm_elemstyles_colorize_node(styles, node); |
604 |
node = node->next; |
node = node->next; |
605 |
} |
} |