+ fix text_minimum_padding.diff (#547) patch

This commit is contained in:
Artem Pavlenko 2010-11-03 13:19:04 +00:00
parent 0823b83900
commit 0361061053

View file

@ -1234,7 +1234,7 @@ void map_parser::parse_text_symbolizer( rule_type & rule, ptree const & sym )
// minimum distance from edge of the map
optional<unsigned> min_padding =
get_opt_attr<unsigned>(sym, "min_padding");
if (min_distance)
if (min_padding)
{
text_symbol.set_minimum_padding(*min_padding);
}
@ -1404,7 +1404,7 @@ void map_parser::parse_shield_symbolizer( rule_type & rule, ptree const & sym )
// minimum distance from edge of the map
optional<unsigned> min_padding =
get_opt_attr<unsigned>(sym, "min_padding");
if (min_distance)
if (min_padding)
{
shield_symbol.set_minimum_padding(*min_padding);
}