]> mj.ucw.cz Git - leo.git/blobdiff - lab-lines.c
Symbolizers may visually compare two symbols
[leo.git] / lab-lines.c
index a32997317a57485c3d25e39a6fba45bb0bab3d31..1ec7a3fa3832cc110da82594d0899c01db0f18ed 100644 (file)
@@ -286,8 +286,7 @@ static void bfs_edge(struct graph_edge *e, struct graph_node *node, struct graph
 
     if (((other->n1->id == node->id) || (other->n2->id == node->id)) &&
         (e->label) && (other->label) &&
-        (e->label->type == SYMBOLIZER_TEXT) && (other->label->type == SYMBOLIZER_TEXT) &&
-        (((struct sym_text *) e->label)->text == ((struct sym_text *) other->label)->text))
+        (sym_look_same(e->label, other->label)))
     {
       if (! candidate || (other->length > candidate->length))
       candidate = other;