230 |
/* redraw the entire map by destroying all map items and redrawing them */ |
/* redraw the entire map by destroying all map items and redrawing them */ |
231 |
diff_save(appdata->project, appdata->osm); |
diff_save(appdata->project, appdata->osm); |
232 |
map_clear(appdata, MAP_LAYER_OBJECTS_ONLY); |
map_clear(appdata, MAP_LAYER_OBJECTS_ONLY); |
|
osm_free(&appdata->icon, appdata->osm); |
|
233 |
|
|
234 |
|
osm_free(&appdata->icon, appdata->osm); |
235 |
appdata->osm = NULL; |
appdata->osm = NULL; |
236 |
} |
} |
237 |
|
|
338 |
|
|
339 |
banner_busy_start(appdata, 1, _("Redrawing")); |
banner_busy_start(appdata, 1, _("Redrawing")); |
340 |
map_clear(appdata, MAP_LAYER_OBJECTS_ONLY); |
map_clear(appdata, MAP_LAYER_OBJECTS_ONLY); |
341 |
|
|
342 |
osm_free(&appdata->icon, appdata->osm); |
osm_free(&appdata->icon, appdata->osm); |
343 |
|
appdata->osm = NULL; |
344 |
|
|
345 |
diff_remove(appdata->project); |
diff_remove(appdata->project); |
346 |
appdata->osm = osm_parse(appdata->project->path, appdata->project->osm); |
appdata->osm = osm_parse(appdata->project->path, appdata->project->osm); |
347 |
map_paint(appdata); |
map_paint(appdata); |
1372 |
map_remove_bg_image(appdata->map); |
map_remove_bg_image(appdata->map); |
1373 |
|
|
1374 |
osm_free(&appdata->icon, appdata->osm); |
osm_free(&appdata->icon, appdata->osm); |
1375 |
|
appdata->osm = NULL; |
1376 |
|
|
1377 |
curl_global_cleanup(); |
curl_global_cleanup(); |
1378 |
|
|