From c3b367b5c46ad8b7b4a396c1f5591b2dca4ba69c Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Wed, 11 Jun 2008 17:18:53 +0300 Subject: [PATCH] Mapper: Fix initial position setting --- src/mapper.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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"; -- 2.39.5