]> mj.ucw.cz Git - leo.git/blobdiff - sym-line.c
Labelling: Bugfixes in get_closure
[leo.git] / sym-line.c
index 4944fcdd987de884971fc0ed2e5cfd8def596851..0dd3e1fca0a3774b0fd8e83aa29e0989ba3f0853 100644 (file)
@@ -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,12 @@ 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)
+            labeller_notify_line(&sl->s, sym_zindex(o, si, casing ? 2 : 3));
+          sym_plan(&sl->s, sym_zindex(o, si, casing ? 2 : 3));
+        }
     }
 }