]> git.street.me.uk Git - andy/viking.git/commitdiff
Fix #2881916: rename a track with c&p
authorRobert Norris <rw_norris@hotmail.com>
Tue, 2 Feb 2010 21:26:26 +0000 (22:26 +0100)
committerGuilhem Bonnefille <guilhem.bonnefille@gmail.com>
Tue, 2 Feb 2010 21:26:26 +0000 (22:26 +0100)
There is a problem whereby the track rename checks the *waypoints* names not the tracks name.
Probably a cut 'n' paste error.

Signed-off-by: Guilhem Bonnefille <guilhem.bonnefille@gmail.com>
src/viktrwlayer.c

index ce0f6a817a5158e2314f58ee7e8f611d4dafd550..a59e3759f0a58ec93ece828835e2d75d06416a9a 100644 (file)
@@ -2559,7 +2559,7 @@ const gchar *vik_trw_layer_sublayer_rename_request ( VikTrwLayer *l, const gchar
       return NULL;
 
     if (strcasecmp(newname, sublayer)) { /* Not just changing case */
-      if (g_hash_table_lookup( l->waypoints, newname))
+      if (g_hash_table_lookup( l->tracks, newname))
       {
         a_dialog_error_msg ( VIK_GTK_WINDOW_FROM_LAYER(l), _("Track Already Exists") );
         return NULL;