From: Bert Wesarg Date: Tue, 9 Oct 2018 23:55:02 +0000 (+0200) Subject: Don't list the description twice in `UserTextIdentificationFrame::toString()` (#853) X-Git-Tag: v1.12-beta-1~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f6fe0b16c59f8dcc0b55ff567829a03b2207cd2;p=taglib Don't list the description twice in `UserTextIdentificationFrame::toString()` (#853) --- diff --git a/taglib/mpeg/id3v2/frames/textidentificationframe.cpp b/taglib/mpeg/id3v2/frames/textidentificationframe.cpp index db9a177e..61cf6ed8 100644 --- a/taglib/mpeg/id3v2/frames/textidentificationframe.cpp +++ b/taglib/mpeg/id3v2/frames/textidentificationframe.cpp @@ -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