only throw on duplicate styles in strict mode

This commit is contained in:
Dane Springmeyer 2018-06-24 10:19:33 -07:00
parent e9ebc938e0
commit 7673bbe827

View file

@ -545,7 +545,7 @@ void map_parser::parse_style(Map & map, xml_node const& node)
if (!map.insert_style(name, std::move(style)))
{
if (map.find_style(name))
if (strict_ && map.find_style(name))
{
throw config_error("duplicate style name");
}