X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=map.c;h=c9c2635e0716218382063c893c407a2b6f606198;hb=0b7522e4e32b14be37ae657767b9c47fc6774819;hp=8f502006324660fe42329f89a797452652c040d3;hpb=9984564bf78208f9b16e9736a7fd5c768f7dc41d;p=leo.git diff --git a/map.c b/map.c index 8f50200..c9c2635 100644 --- a/map.c +++ b/map.c @@ -4,7 +4,8 @@ * (c) 2014 Martin Mares */ -#include +#include "leo.h" + #include #include #include @@ -13,7 +14,6 @@ #include #include -#include "leo.h" #include "osm.h" #include "shp.h" #include "map.h" @@ -236,6 +236,8 @@ static void map_load_source(struct data_source *ds) break; case DATA_SOURCE_FIXED: msg(L_INFO, "Adding fixed objects"); + if (!ds->file) + ds->file = "fixed"; fixed_add(); break; case DATA_SOURCE_SHAPE: @@ -249,6 +251,7 @@ static void map_load_source(struct data_source *ds) die("Invalid data source format"); } + osm_stats(); if (debug_dump_source) { puts("=== Source data ===");