]> mj.ucw.cz Git - leo.git/blobdiff - sym-text.c
[Labelling] Coding style fixes and cleanups in other modules
[leo.git] / sym-text.c
index 96b3a50cd7a8d0fdb4a31308ac2f36651882c158..46ecaeeb56a271ea4ee9721c69ff49a7775776de 100644 (file)
@@ -17,7 +17,6 @@
 #include "osm.h"
 #include "sym.h"
 #include "map.h"
-
 #include "labeller.h"
 
 /*** Fonts ***/
@@ -448,8 +447,6 @@ static void sym_text_node(struct osm_object *o, struct style_info *si, osm_val_t
       msg(L_DEBUG, "Text <%s> dropped as duplicate", osm_val_decode(text));
       return;
     }
-
-  //sym_plan(&st->s, sym_zindex(o, si, 5));
 }
 
 static void sym_text_center(struct osm_object *o, struct style_info *si, osm_val_t text, double x, double y)
@@ -465,13 +462,13 @@ static void sym_text_center(struct osm_object *o, struct style_info *si, osm_val
   st->y += st->th - (st->th + st->td) / 2;
   text_fix_placement(st);
   if (o->type == OSM_TYPE_WAY && !osm_way_cyclic_p((struct osm_way *) o))
-  {
-    labeller_add_linelabel(&st->s, o, sym_zindex(o, si, 4.9));
-  }
+    {
+      labeller_add_linelabel(&st->s, o, sym_zindex(o, si, 4.9));
+    }
   else
-  {
-    labeller_add_arealabel(&st->s, o, sym_zindex(o, si, 4.9));
-  }
+    {
+      labeller_add_arealabel(&st->s, o, sym_zindex(o, si, 4.9));
+    }
 }
 
 static void sym_text_way(struct osm_object *o, struct style_info *si, osm_val_t text)