Permalink
Browse files

after #1483 fontset is boost optional so check appropriately in load_…

…map (solves assert)
  • Loading branch information...
1 parent 78790e6 commit e221168e4ef8b97a4a4cc5c09c66e35dffc876f1 Dane Springmeyer committed Sep 26, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/load_map.cpp
View
@@ -1148,7 +1148,7 @@ void map_parser::parse_text_symbolizer(rule & rule, xml_node const& sym)
placement_finder->defaults.from_xml(sym, fontsets_);
}
if (strict_ &&
- !placement_finder->defaults.format.fontset->size())
+ !placement_finder->defaults.format.fontset)
{
ensure_font_face(placement_finder->defaults.format.face_name);
}
@@ -1177,7 +1177,7 @@ void map_parser::parse_shield_symbolizer(rule & rule, xml_node const& sym)
}
placement_finder->defaults.from_xml(sym, fontsets_);
if (strict_ &&
- !placement_finder->defaults.format.fontset->size())
+ !placement_finder->defaults.format.fontset)
{
ensure_font_face(placement_finder->defaults.format.face_name);
}

0 comments on commit e221168

Please sign in to comment.