mirror of
https://github.com/taglib/taglib.git
synced 2025-06-04 01:28:21 -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:
parent
b16c8587ab
commit
fa61e63ac8
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user