Don't list the description twice in UserTextIdentificationFrame::toString() (#853)

This commit is contained in:
Bert Wesarg 2018-10-10 01:55:02 +02:00 committed by Stephen F. Booth
parent 2c4ae870ec
commit 8f6fe0b16c

View File

@ -339,7 +339,13 @@ UserTextIdentificationFrame::UserTextIdentificationFrame(const String &descripti
String UserTextIdentificationFrame::toString() const
{
return "[" + description() + "] " + fieldList().toString();
// first entry is the description itself, drop from values list
StringList l = fieldList();
for(StringList::Iterator it = l.begin(); it != l.end(); ++it) {
l.erase(it);
break;
}
return "[" + description() + "] " + l.toString();
}
String UserTextIdentificationFrame::description() const