]> mj.ucw.cz Git - leo.git/commitdiff
Coordinates from the "fixed" data source are not scaled
authorMartin Mares <mj@ucw.cz>
Sun, 7 Jun 2015 14:15:31 +0000 (16:15 +0200)
committerMartin Mares <mj@ucw.cz>
Sun, 7 Jun 2015 14:15:31 +0000 (16:15 +0200)
map.c

diff --git a/map.c b/map.c
index bbcd7463b1f33de9864a3becb632b2b8c2c3f50e..d15b835c2761b3c4aee6b2665de0127ba3c28b53 100644 (file)
--- a/map.c
+++ b/map.c
@@ -1,7 +1,7 @@
 /*
  *     Hic Est Leo -- Global Map Operations
  *
- *     (c) 2014 Martin Mares <mj@ucw.cz>
+ *     (c) 2014--2015 Martin Mares <mj@ucw.cz>
  */
 
 #include <ucw/lib.h>
@@ -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);