mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
bug fix : call fontsets_.insert(fontset) before std::move(fontset)
This commit is contained in:
parent
7ff8c97afe
commit
4474fc52e2
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user