Detection of duplicate legend-entries