]> err.no Git - mapper/commitdiff
MapWidget: Check against correct path type
authorKaj-Michael Lang <milang@tal.org>
Fri, 1 Aug 2008 12:40:42 +0000 (15:40 +0300)
committerKaj-Michael Lang <milang@tal.org>
Fri, 1 Aug 2008 12:40:42 +0000 (15:40 +0300)
libs/libgtkmap/gtkmap.c

index c7318a5606768254a59e3f3773b100f9d634c707..3c0e5952215e95584d97929e02fa4fe282c2bbf3 100644 (file)
@@ -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);