}
static void
-navit_projection_set(struct navit *this_, enum projection pro)
+navit_projection_set(struct navit *this_, enum projection pro, int draw)
{
struct coord_geo g;
struct coord *c;
transform_to_geo(transform_get_projection(this_->trans), c, &g);
transform_set_projection(this_->trans, pro);
transform_from_geo(pro, &g, c);
- navit_draw(this_);
+ if (draw)
+ navit_draw(this_);
}
/**
break;
case attr_projection:
if(this_->trans && transform_get_projection(this_->trans) != attr->u.projection) {
- navit_projection_set(this_, attr->u.projection);
+ navit_projection_set(this_, attr->u.projection, !init);
attr_updated=1;
}
break;