Diff of /trunk/src/map.c

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

revision 24 by harbaum, Sun Dec 21 11:49:35 2008 UTC revision 54 by harbaum, Fri Feb 6 12:06:30 2009 UTC
# Line 56  static void map_statusbar(map_t *map, ma Line 56  static void map_statusbar(map_t *map, ma
56      str = g_strdup_printf("%s #%ld", item_str, id);      str = g_strdup_printf("%s #%ld", item_str, id);
57    
58      /* add some tags ... */      /* add some tags ... */
59        /*
60         *  XXX Should we just try to present only the name or the ref (or the
61         *  alt_name, old_name, whatever) here?  Hurling a load of tags in the
62         *  user's face in some unpredictable, uninformative order isn't very
63         *  friendly.
64         *
65         *  Actually, a tag_short_desc() function would be useful in dialogs
66         *  nd user messages too.
67         */
68      while(tag) {      while(tag) {
69        if(!collision && info_tag_key_collision(tags, tag))        if(!collision && info_tag_key_collision(tags, tag))
70          collision = TRUE;          collision = TRUE;
# Line 448  static canvas_item_t *map_way_new(map_t Line 457  static canvas_item_t *map_way_new(map_t
457    
458    if (group != CANVAS_GROUP_WAYS_OL)    if (group != CANVAS_GROUP_WAYS_OL)
459      if (way->draw.dashed)      if (way->draw.dashed)
460        canvas_item_set_dashed(map_item->item);        canvas_item_set_dashed(map_item->item, width, way->draw.dash_length);
461    
462    /* attach map_item to ways map_item_chain */    /* attach map_item to ways map_item_chain */
463    map_item_chain_t **chain = &way->map_item_chain;    map_item_chain_t **chain = &way->map_item_chain;
# Line 2024  void map_delete_selected(appdata_t *appd Line 2033  void map_delete_selected(appdata_t *appd
2033    /* deleting the selected item de-selects it ... */    /* deleting the selected item de-selects it ... */
2034    map_item_deselect(appdata);    map_item_deselect(appdata);
2035    
2036      undo_remember_delete(appdata, item.type, item.ptr);
2037    
2038    switch(item.type) {    switch(item.type) {
2039    case MAP_TYPE_NODE:    case MAP_TYPE_NODE:
2040      printf("request to delete node #%ld\n", item.node->id);      printf("request to delete node #%ld\n", item.node->id);

Legend:
Removed from v.24  
changed lines
  Added in v.54