/[xlog]/xlog/data/utils/migrate_tables.c
ViewVC logotype

Diff of /xlog/data/utils/migrate_tables.c

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

revision 1.2 by pa4tu, Mon Apr 25 15:15:50 2005 UTC revision 1.3 by pa4tu, Mon May 16 19:18:00 2005 UTC
# Line 371  makecountrydata (void) Line 371  makecountrydata (void)
371                          }                          }
372                          g_strfreev (pfxsplit);                          g_strfreev (pfxsplit);
373    
374          /* add some spaces when possible, so the countrylabel will display nicely,          /* add some spaces when possible, so the countrylabel will display nicely */
          * this string contains markups, so we have to escape the ampersand....  
          */  
375                          if (g_strrstr(split[1], ".."))                          if (g_strrstr(split[1], ".."))
376                                  split[1] = my_strreplace (split[1], "..", " ");                                  split[1] = my_strreplace (split[1], "..", " ");
377                          if (g_strrstr(split[1], ","))                          if (g_strrstr(split[1], ","))
# Line 415  makecountrydata (void) Line 413  makecountrydata (void)
413                          if ((p = g_strrstr(split[5], "E")))                          if ((p = g_strrstr(split[5], "E")))
414                          {                          {
415                                  *p = '\0';                                  *p = '\0';
416                                  lon = atof (split[5]) * 100;                                  lon = -1 * atof (split[5]) * 100;
417                          }                          }
418                          else                          else
419                          if ((p = g_strrstr(split[5], "W")))                          if ((p = g_strrstr(split[5], "W")))
420                          {                          {
421                                  *p = '\0';                                  *p = '\0';
422                                  lon = -1 * atof (split[5]) * 100;                                  lon = atof (split[5]) * 100;
423                          }                          }
424    
425          /* convert zones */          /* convert zones */

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26