From: Kaj-Michael Lang Date: Wed, 11 Jun 2008 14:18:53 +0000 (+0300) Subject: Mapper: Fix initial position setting X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c3b367b5c46ad8b7b4a396c1f5591b2dca4ba69c;p=mapper Mapper: Fix initial position setting --- diff --git a/src/mapper.c b/src/mapper.c index 5184893..0f9e24c 100644 --- a/src/mapper.c +++ b/src/mapper.c @@ -439,10 +439,10 @@ switch (mis) { w="UI"; break; case MAPPER_INIT_GOTO: - if (gtk_map_goto_position(_map, &_home)==FALSE) + if (gtk_map_goto_position(_map, &_home)==FALSE) { g_printerr("Home is not set.\n"); - else - gtk_map_center_latlon(_map, 60.45, 22.25); + gtk_map_set_center_latlon(_map, 60.45, 22.25); + } mis=MAPPER_INIT_DONE; p=1.0; w="Done";