mirror of
https://github.com/taglib/taglib.git
synced 2026-09-11 03:57:08 -04:00
Improve string to ASF BoolType conversion (#1435)
This commit is contained in:
@@ -454,7 +454,7 @@ PropertyMap ASF::Tag::setProperties(const PropertyMap &props)
|
||||
addAttribute(name, str.toULongLong());
|
||||
break;
|
||||
case Attribute::BoolType:
|
||||
addAttribute(name, !str.isEmpty() && str != "0" && str.upper() != "TRUE");
|
||||
addAttribute(name, !str.isEmpty() && str != "0" && str.upper() != "FALSE");
|
||||
break;
|
||||
case Attribute::GuidType: {
|
||||
ByteVector data;
|
||||
|
||||
Reference in New Issue
Block a user