summaryrefslogtreecommitdiff
path: root/navit/gui
diff options
context:
space:
mode:
authormdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-02-20 21:17:49 +0000
committermdankov <mdankov@ffa7fe5e-494d-0410-b361-a75ebd5db220>2013-02-20 21:17:49 +0000
commit43bb0d7a67b3baea1a82f0d4b6ebce53b518da77 (patch)
tree93f63b36ef90b622541cafc94c6efc0b52418413 /navit/gui
parentfeb56f57ba0d79a6f610c77efd7aebd9e14b2eea (diff)
downloadnavit-43bb0d7a67b3baea1a82f0d4b6ebce53b518da77.tar.gz
Fix:gui_internal:Fix regression of svn5341, include item labels in filtered POI list.
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5388 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/gui')
-rw-r--r--navit/gui/internal/gui_internal_poi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/navit/gui/internal/gui_internal_poi.c b/navit/gui/internal/gui_internal_poi.c
index 7f06a41ec..636087298 100644
--- a/navit/gui/internal/gui_internal_poi.c
+++ b/navit/gui/internal/gui_internal_poi.c
@@ -595,7 +595,7 @@ gui_internal_cmd_pois(struct gui_priv *this, struct widget *wm, void *data)
struct item_data *data;
struct attr attr;
char *label;
-
+ item_attr_rewind(item);
if (item->type==type_house_number) {
label=gui_internal_compose_item_address_string(item);
} else if (item_attr_get(item, attr_label, &attr)) {
@@ -674,7 +674,7 @@ gui_internal_cmd_pois(struct gui_priv *this, struct widget *wm, void *data)
gui_internal_widget_append(row,wi);
row->datai=data->dist;
gui_internal_widget_prepend(wtable,row);
- free(data->label);
+ g_free(data->label);
}
fh_deleteheap(fh);