From ba53fb9d00c5e2cf8789bc559d5c194d9036cb79 Mon Sep 17 00:00:00 2001 From: martin-s Date: Fri, 12 Dec 2008 21:25:37 +0000 Subject: Fixed:Core:Improved map querying api git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@1785 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/transform.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'navit/transform.c') diff --git a/navit/transform.c b/navit/transform.c index 0ace9120d..3eda8a59a 100644 --- a/navit/transform.c +++ b/navit/transform.c @@ -26,11 +26,11 @@ #include "config.h" #include "coord.h" #include "debug.h" +#include "item.h" #include "map.h" #include "transform.h" #include "projection.h" #include "point.h" -#include "item.h" struct transformation { int angle; /* Rotation angle */ @@ -264,7 +264,6 @@ transform_get_selection(struct transformation *this_, enum projection pro, int o struct map_selection *ret,*curri,*curro; struct coord_geo g; - int i; ret=map_selection_dup(this_->map_sel); curri=this_->map_sel; @@ -279,8 +278,8 @@ transform_get_selection(struct transformation *this_, enum projection pro, int o dbg(1,": - %f,%f\n", g.lat, g.lng); } dbg(1,"transform rect for %d is %d,%d - %d,%d\n", pro, curro->u.c_rect.lu.x, curro->u.c_rect.lu.y, curro->u.c_rect.rl.x, curro->u.c_rect.rl.y); - for (i = 0 ; i < layer_end ; i++) - curro->order[i]+=order; + curro->order+=order; + curro->range=item_range_all; curri=curri->next; curro=curro->next; } -- cgit v1.2.1