summaryrefslogtreecommitdiff
path: root/navit/transform.c
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-12-12 21:25:37 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2008-12-12 21:25:37 +0000
commitba53fb9d00c5e2cf8789bc559d5c194d9036cb79 (patch)
tree58a40f99c3a9ec1abb222c08f9e65ff7b434d3b0 /navit/transform.c
parent5fa6136271bc1a59062a3fa4115fa904411dc4ca (diff)
downloadnavit-ba53fb9d00c5e2cf8789bc559d5c194d9036cb79.tar.gz
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
Diffstat (limited to 'navit/transform.c')
-rw-r--r--navit/transform.c7
1 files changed, 3 insertions, 4 deletions
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;
}