diff options
author | Bert Wesarg <Bert.Wesarg@googlemail.com> | 2018-10-10 01:55:02 +0200 |
---|---|---|
committer | Stephen F. Booth <me@sbooth.org> | 2018-10-09 18:55:02 -0500 |
commit | 8f6fe0b16c59f8dcc0b55ff567829a03b2207cd2 (patch) | |
tree | 0837cbefc845625fb8fc356c4a3b4eb9bfa6e399 | |
parent | 2c4ae870ec086f2ddd21a47861a3709c36faac45 (diff) |
Don't list the description twice in `UserTextIdentificationFrame::toString()` (#853)
-rw-r--r-- | taglib/mpeg/id3v2/frames/textidentificationframe.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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 |