From 8f6fe0b16c59f8dcc0b55ff567829a03b2207cd2 Mon Sep 17 00:00:00 2001 From: Bert Wesarg Date: Wed, 10 Oct 2018 01:55:02 +0200 Subject: [PATCH] Don't list the description twice in `UserTextIdentificationFrame::toString()` (#853) --- taglib/mpeg/id3v2/frames/textidentificationframe.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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