From 7673bbe827338d2863b030cd0c69067558f5aab9 Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Sun, 24 Jun 2018 10:19:33 -0700 Subject: [PATCH] only throw on duplicate styles in strict mode --- src/load_map.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/load_map.cpp b/src/load_map.cpp index 8371a76c7..9c1d0358a 100644 --- a/src/load_map.cpp +++ b/src/load_map.cpp @@ -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"); }