only throw on duplicate styles in strict mode
This commit is contained in:
parent
e9ebc938e0
commit
7673bbe827
1 changed files with 1 additions and 1 deletions
|
@ -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.insert_style(name, std::move(style)))
|
||||||
{
|
{
|
||||||
if (map.find_style(name))
|
if (strict_ && map.find_style(name))
|
||||||
{
|
{
|
||||||
throw config_error("duplicate style name");
|
throw config_error("duplicate style name");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue