bug fix : call fontsets_.insert(fontset) before std::move(fontset)
This commit is contained in:
parent
7ff8c97afe
commit
4474fc52e2
1 changed files with 1 additions and 2 deletions
|
@ -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…
Add table
Reference in a new issue