685 |
void map_item_redraw(appdata_t *appdata, map_item_t *map_item) { |
void map_item_redraw(appdata_t *appdata, map_item_t *map_item) { |
686 |
map_item_t item = *map_item; |
map_item_t item = *map_item; |
687 |
|
|
688 |
|
/* a relation cannot be redraws as it doesn't have a visual */ |
689 |
|
/* representation */ |
690 |
|
if(map_item->object.type == RELATION) |
691 |
|
return; |
692 |
|
|
693 |
/* check if the item to be redrawn is the selected one */ |
/* check if the item to be redrawn is the selected one */ |
694 |
gboolean is_selected = FALSE; |
gboolean is_selected = FALSE; |
695 |
if(map_item->object.ptr == appdata->map->selected.object.ptr) { |
if(map_item->object.ptr == appdata->map->selected.object.ptr) { |