fix default initializations in markers_symbolizer

This commit is contained in:
Dane Springmeyer 2010-05-30 16:09:39 +00:00
parent 810c63cb51
commit 33145b18ae

View file

@ -847,6 +847,9 @@ void agg_renderer<T>::process(markers_symbolizer const& sym,
geometry2d const& geom = feature.get_geometry(i);
if (geom.num_points() <= 1) continue;
svg_marker = false;
extent = arrow_.extent();
std::string filename = path_processor_type::evaluate(*sym.get_filename(), feature);
if (!filename.empty())
@ -860,11 +863,6 @@ void agg_renderer<T>::process(markers_symbolizer const& sym,
extent.init(x1, y1, x2, y2);
}
}
else
{
svg_marker = false;
extent = arrow_.extent();
}
path_type path(t_,geom,prj_trans);
markers_placement<path_type, label_collision_detector4> placement(path, extent, detector_, sym.get_spacing(), sym.get_max_error(), sym.get_allow_overlap());