New patch to revert part of svn2859
[navit-package] / debian / patches / revert-part-of-svn2859
1 Revert part of svn2859 which lead to null pointer
2 diff --git a/navit/graphics.c b/navit/graphics.c
3 index 111456d..743b00d 100644
4 --- a/navit/graphics.c
5 +++ b/navit/graphics.c
6 @@ -2184,7 +2184,7 @@ graphics_process_selection_item(struct displaylist *dl, struct item *item)
7                         return;
8                 }
9         }
10 -       mr=map_rect_new(item->map, NULL);
11 +/*     mr=map_rect_new(item->map, NULL);
12         item=map_rect_get_item_byid(mr, item->id_hi, item->id_lo);
13         count=item_coord_get(item, ca, item->type < type_line ? 1: max);
14         if (!item_attr_get(item, attr_label, &attr))
15 @@ -2195,7 +2195,7 @@ graphics_process_selection_item(struct displaylist *dl, struct item *item)
16                 map_convert_free(str);
17         } else
18                 display_add(dl, item, count, ca, attr.u.str);
19 -       map_rect_destroy(mr);
20 +       map_rect_destroy(mr);*/
21  }
22  
23  void