mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 04:54:19 -04:00
Leave the year field blank if it's set to zero (i.e. cleared).
BUG:109920 git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@444448 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
@ -170,7 +170,7 @@ void ID3v1::Tag::setGenre(const String &s)
|
||||
|
||||
void ID3v1::Tag::setYear(uint i)
|
||||
{
|
||||
d->year = String::number(i);
|
||||
d->year = i > 0 ? String::number(i) : String::null;
|
||||
}
|
||||
|
||||
void ID3v1::Tag::setTrack(uint i)
|
||||
|
Reference in New Issue
Block a user