From 95d0e21ef80b16a04b6aa67f1fe032152c359801 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 21 Aug 2014 01:31:10 +0200 Subject: [PATCH] ag_window_recalculate_chart() now considers country and city names --- src/ag-window.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/ag-window.c b/src/ag-window.c index 535b4d0..0457985 100644 --- a/src/ag-window.c +++ b/src/ag-window.c @@ -574,9 +574,8 @@ ag_window_recalculate_chart(AgWindow *window, gboolean set_everything) edit_data->db_id = db_id; edit_data->name = g_strdup(gtk_entry_get_text(GTK_ENTRY(priv->name))); - // TODO: This will cause problems with imported charts… - edit_data->country = NULL; - edit_data->city = NULL; + edit_data->country = g_strdup(gtk_entry_get_text(GTK_ENTRY(priv->country))); + edit_data->city = g_strdup(gtk_entry_get_text(GTK_ENTRY(priv->city))); edit_data->longitude = gtk_spin_button_get_value( GTK_SPIN_BUTTON(priv->longitude) ); @@ -593,7 +592,7 @@ ag_window_recalculate_chart(AgWindow *window, gboolean set_everything) edit_data->latitude = - edit_data->latitude; } - // TODO: So as this… + // TODO: This will cause problems with imported charts edit_data->altitude = DEFAULT_ALTITUDE; edit_data->year = gtk_spin_button_get_value_as_int( GTK_SPIN_BUTTON(priv->year)