]> granicus.if.org Git - taglib/commitdiff
If the genre string is empty don't treat it as a number.
authorScott Wheeler <wheeler@kde.org>
Tue, 24 Jun 2008 14:08:03 +0000 (14:08 +0000)
committerScott Wheeler <wheeler@kde.org>
Tue, 24 Jun 2008 14:08:03 +0000 (14:08 +0000)
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@823961 283d02a7-25f6-0310-bc7c-ecb5cbfe19da

taglib/mpeg/id3v2/id3v2tag.cpp

index 19f663c5c332f72d5cb86ad21d510ae9b065b70b..c7eb6d619d412cc419c1b3f7b7f8604b795f5fba 100644 (file)
@@ -161,6 +161,9 @@ String ID3v2::Tag::genre() const
 
   for(StringList::Iterator it = fields.begin(); it != fields.end(); ++it) {
 
+    if((*it).isEmpty())
+      continue;
+
     bool isNumber = true;
 
     for(String::ConstIterator charIt = (*it).begin();