bug fix : call fontsets_.insert(fontset) before std::move(fontset)

This commit is contained in:
artemp 2014-05-27 15:34:12 +01:00
parent 7ff8c97afe
commit 4474fc52e2

View file

@ -512,11 +512,10 @@ void map_parser::parse_fontset(Map & map, xml_node const& fset)
throw mapnik::config_error("no valid fonts could be loaded");
}
map.insert_fontset(name, std::move(fontset));
// XXX Hack because map object isn't accessible by text_symbolizer
// when it's parsed
fontsets_.insert(std::make_pair(name, fontset));
map.insert_fontset(name, std::move(fontset));
}
catch (config_error const& ex)
{