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;