]> git.street.me.uk Git - andy/viking.git/blobdiff - src/viktrwlayer_propwin.c
Ensure vtl created in acquire operation runs post read stage.
[andy/viking.git] / src / viktrwlayer_propwin.c
index 999056289e1d7b1998c9b1cc1489b4be18fb34d0..89a013dfcb81e4c85b8ce808f2ac065d381e44e7 100644 (file)
@@ -69,7 +69,7 @@ typedef enum {
 
 /* (Hopefully!) Human friendly altitude grid sizes - note no fixed 'ratio' just numbers that look nice...*/
 static const gdouble chunksa[] = {2.0, 5.0, 10.0, 15.0, 20.0,
-                                 25.0, 50.0, 75.0, 100.0,
+                                 25.0, 40.0, 50.0, 75.0, 100.0,
                                  150.0, 200.0, 250.0, 375.0, 500.0,
                                  750.0, 1000.0, 2000.0, 5000.0, 10000.0, 100000.0};
 
@@ -311,7 +311,7 @@ static VikTrackpoint *set_center_at_graph_position(gdouble event_x,
       /* since vlp not set, vvp should be valid instead! */
       if ( vvp )
        vik_viewport_set_center_coord ( vvp, &coord );
-      vik_layer_emit_update ( VIK_LAYER(vtl) );
+      vik_layer_emit_update ( VIK_LAYER(vtl), FALSE );
     }
   }
   return trackpoint;
@@ -2303,13 +2303,13 @@ static void propwin_response_cb( GtkDialog *dialog, gint resp, PropWidgets *widg
       break;
     case VIK_TRW_LAYER_PROPWIN_REVERSE:
       vik_track_reverse(tr);
-      vik_layer_emit_update ( VIK_LAYER(vtl) );
+      vik_layer_emit_update ( VIK_LAYER(vtl), FALSE );
       break;
     case VIK_TRW_LAYER_PROPWIN_DEL_DUP:
       vik_track_remove_dup_points(tr);
       /* above operation could have deleted current_tp or last_tp */
       trw_layer_cancel_tps_of_track ( vtl, widgets->track_name );
-      vik_layer_emit_update ( VIK_LAYER(vtl) );
+      vik_layer_emit_update ( VIK_LAYER(vtl), FALSE );
       break;
     case VIK_TRW_LAYER_PROPWIN_SPLIT:
       {
@@ -2346,7 +2346,7 @@ static void propwin_response_cb( GtkDialog *dialog, gint resp, PropWidgets *widg
           /* Don't let track destroy this dialog */
           vik_track_clear_property_dialog(tr);
           vik_trw_layer_delete_track ( vtl, widgets->track_name );
-          vik_layer_emit_update ( VIK_LAYER(vtl) ); /* chase thru the hoops */
+          vik_layer_emit_update ( VIK_LAYER(vtl), FALSE ); /* chase thru the hoops */
         }
       }
       break;
@@ -2364,7 +2364,7 @@ static void propwin_response_cb( GtkDialog *dialog, gint resp, PropWidgets *widg
           break;
         }
 
-        gchar *r_name = g_strdup_printf("%s #R", widgets->track_name);
+        gchar *r_name = g_strdup_printf("%s #2", widgets->track_name);
         if (vik_trw_layer_get_track(vtl, r_name ) && 
              ( ! a_dialog_yes_or_no( VIK_GTK_WINDOW_FROM_LAYER(vtl),
               "The track \"%s\" exists, do you wish to overwrite it?", r_name)))
@@ -2390,7 +2390,7 @@ static void propwin_response_cb( GtkDialog *dialog, gint resp, PropWidgets *widg
         tr_right->trackpoints = iter;
 
         vik_trw_layer_add_track(vtl, r_name, tr_right);
-        vik_layer_emit_update ( VIK_LAYER(vtl) );
+        vik_layer_emit_update ( VIK_LAYER(vtl), FALSE );
       }
       break;
     default: