* fix desktop icon scaling harder
[navit-package] / debian / patches / revert-part-of-svn2859
1 Revert part of svn2859 which lead to null pointer
2 Index: navit/navit/graphics.c
3 ===================================================================
4 --- navit.orig/navit/graphics.c 2010-01-17 03:29:04.289821917 +0100
5 +++ navit/navit/graphics.c      2010-01-17 03:33:33.758545997 +0100
6 @@ -2258,7 +2258,7 @@
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 @@ -2269,7 +2269,7 @@
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