From d4cb1188a84355a7352c253ec7b832f49d59ffd1 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 7 Jun 2015 16:15:31 +0200 Subject: [PATCH] Coordinates from the "fixed" data source are not scaled --- map.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/map.c b/map.c index bbcd746..d15b835 100644 --- a/map.c +++ b/map.c @@ -1,7 +1,7 @@ /* * Hic Est Leo -- Global Map Operations * - * (c) 2014 Martin Mares + * (c) 2014--2015 Martin Mares */ #include @@ -113,6 +113,8 @@ void map_set_scale(void) double rmin_y = INFINITY, rmax_y = -INFINITY; CLIST_FOR_EACH(struct data_source *, ds, map_sources) { + if (ds->format == DATA_SOURCE_FIXED) + continue; CLIST_FOR_EACH(struct osm_node *, n, ds->osm->obj_list[OSM_TYPE_NODE]) { pmin_x = MIN(pmin_x, n->x); -- 2.39.5