From: Kaj-Michael Lang Date: Fri, 1 Aug 2008 12:40:42 +0000 (+0300) Subject: MapWidget: Check against correct path type X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=06ffc62b37fe14641683aedf7c0ee7129843cf55;p=mapper MapWidget: Check against correct path type --- diff --git a/libs/libgtkmap/gtkmap.c b/libs/libgtkmap/gtkmap.c index c7318a5..3c0e595 100644 --- a/libs/libgtkmap/gtkmap.c +++ b/libs/libgtkmap/gtkmap.c @@ -1181,7 +1181,7 @@ for (iter=priv->paths; iter!=NULL; iter=iter->next) { Path *p=(Path *)iter->data; if ( (!(priv->show_paths & ROUTES_MASK) && p->type==PATH_TYPE_ROUTE) || - (!(priv->show_paths & TRACKS_MASK) && p->type==PATH_TYPE_ROUTE) ) + (!(priv->show_paths & TRACKS_MASK) && p->type==PATH_TYPE_TRACK) ) continue; gtk_map_render_path(widget, p, event);