Diff of /trunk/src/goto.c

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

revision 50 by harbaum, Thu Aug 6 20:23:12 2009 UTC revision 51 by harbaum, Wed Aug 12 12:16:05 2009 UTC
# Line 441  static gboolean goto_update(gpointer dat Line 441  static gboolean goto_update(gpointer dat
441      gtk_label_set_text(GTK_LABEL(context->gotoc.epe_label), "-----");      gtk_label_set_text(GTK_LABEL(context->gotoc.epe_label), "-----");
442    else {    else {
443      char str[16];      char str[16];
444      if(context->appdata->imperial) {      distance_str(str, sizeof(str), epe, context->appdata->imperial);
       epe *= 3.2808;  
       snprintf(str, sizeof(str), "%.1f ft", epe);  
     } else  
       snprintf(str, sizeof(str), "%.1f m", epe);  
   
445      gtk_label_set_text(GTK_LABEL(context->gotoc.epe_label), str);      gtk_label_set_text(GTK_LABEL(context->gotoc.epe_label), str);
446    }    }
447    

Legend:
Removed from v.50  
changed lines
  Added in v.51