Diff of /trunk/src/gpx.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 13 by harbaum, Sat Jun 27 11:09:19 2009 UTC revision 34 by harbaum, Wed Jul 29 19:24:15 2009 UTC
# Line 155  gpx_dialog_t *gpx_busy_dialog_new(GtkWid Line 155  gpx_dialog_t *gpx_busy_dialog_new(GtkWid
155    gtk_window_set_title(GTK_WINDOW(dialog->dialog), _("Loading"));    gtk_window_set_title(GTK_WINDOW(dialog->dialog), _("Loading"));
156    gtk_window_set_default_size(GTK_WINDOW(dialog->dialog), 300, 10);    gtk_window_set_default_size(GTK_WINDOW(dialog->dialog), 300, 10);
157    
158    gtk_window_set_modal(GTK_WINDOW(dialog), TRUE);    gtk_window_set_modal(GTK_WINDOW(dialog->dialog), TRUE);
159    gtk_window_set_transient_for(GTK_WINDOW(dialog->dialog), GTK_WINDOW(parent));    gtk_window_set_transient_for(GTK_WINDOW(dialog->dialog), GTK_WINDOW(parent));
160    
161    dialog->label = gtk_label_new("---");    dialog->label = gtk_label_new("---");
# Line 764  static cache_t *process_gpx_wpt(xmlTextR Line 764  static cache_t *process_gpx_wpt(xmlTextR
764        /* neither geocaching.com GC* nor opencaching.com OC* nor */        /* neither geocaching.com GC* nor opencaching.com OC* nor */
765        /* geocaching australia GA* waypoint */        /* geocaching australia GA* waypoint */
766        if(cache->id &&        if(cache->id &&
767             (strncasecmp(cache->id, "__", 2) != 0) &&
768           (strncasecmp(cache->id, "GC", 2) != 0) &&           (strncasecmp(cache->id, "GC", 2) != 0) &&
769           (strncasecmp(cache->id, "OC", 2) != 0) &&           (strncasecmp(cache->id, "OC", 2) != 0) &&
770           (strncasecmp(cache->id, "GA", 2) != 0)) {           (strncasecmp(cache->id, "GA", 2) != 0)) {
# Line 1345  float gpx_pos_get_distance(pos_t p1, pos Line 1346  float gpx_pos_get_distance(pos_t p1, pos
1346    
1347  void gpx_pos_get_distance_str(char *str, int len,  void gpx_pos_get_distance_str(char *str, int len,
1348                                pos_t p1, pos_t p2, int mil) {                                pos_t p1, pos_t p2, int mil) {
1349    if(!p1.lat && !p1.lon) {    if(isnan(p1.lat) || isnan(p1.lon)) {
1350      snprintf(str, len, "---");      snprintf(str, len, "---");
1351      return;      return;
1352    }    }

Legend:
Removed from v.13  
changed lines
  Added in v.34