]> err.no Git - mapper/commitdiff
Mapper: Fix initial position setting
authorKaj-Michael Lang <milang@tal.org>
Wed, 11 Jun 2008 14:18:53 +0000 (17:18 +0300)
committerKaj-Michael Lang <milang@tal.org>
Wed, 11 Jun 2008 14:18:53 +0000 (17:18 +0300)
src/mapper.c

index 51848933460ab0356a27b992e07b535ddb0f8e1d..0f9e24ce44bac43a6c6b36cfc8f65b975136d771 100644 (file)
@@ -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";