X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=sym-line.c;h=20a26dcbcad553287c798d96800acad0c887a4c3;hb=e827ddca25fa9660147cac4d4438d7b41b8e342b;hp=4944fcdd987de884971fc0ed2e5cfd8def596851;hpb=44b0ec8816c3cf1a5858fec0c51e075cedefc3eb;p=leo.git diff --git a/sym-line.c b/sym-line.c index 4944fcd..20a26dc 100644 --- a/sym-line.c +++ b/sym-line.c @@ -14,6 +14,7 @@ #include "leo.h" #include "osm.h" #include "sym.h" +#include "labeller.h" static void sym_line_attrs(struct sym_line *l, struct svg *svg) { @@ -180,7 +181,14 @@ static void sym_line_gen(struct osm_object *o, struct style_info *si, struct svg else osm_obj_warn(o, "Invalid dash pattern"); - sym_plan(&sl->s, sym_zindex(o, si, casing ? 2 : 3)); + if (o->type == OSM_TYPE_WAY) + { + if (casing) + sym_plan(&sl->s, sym_zindex(o, si, 2)); + else + labeller_add_line(&sl->s, sym_zindex(o, si, casing ? 2 : 3)); + } + //sym_plan(&sl->s, sym_zindex(o, si, casing ? 2 : 3)); } }