Fix a bug that Tag::setProperties() clears the date instead of the track number.

This commit is contained in:
Tsuda Kageyu
2015-03-20 13:33:13 +09:00
parent 8fccaf30d2
commit 68c0b0591b
2 changed files with 49 additions and 5 deletions

View File

@ -137,7 +137,7 @@ PropertyMap Tag::setProperties(const PropertyMap &origProps)
setTrack(0);
}
else
setYear(0);
setTrack(0);
// for each tag that has been set above, remove the first entry in the corresponding
// value list. The others will be returned as unsupported by this format.