c++11
This commit is contained in:
parent
b7dda95d84
commit
d3836bc71a
1 changed files with 2 additions and 3 deletions
|
@ -59,7 +59,7 @@ bool svg_renderer<OutputIterator>::process(rule::symbolizers const& syms,
|
|||
// process each symbolizer to collect its (path) information.
|
||||
// path information (attributes from line_ and polygon_ symbolizers)
|
||||
// is collected with the path_attributes_ data member.
|
||||
for (symbolizer const& sym : syms)
|
||||
for (auto const& sym : syms)
|
||||
{
|
||||
if (is_path_based(sym))
|
||||
{
|
||||
|
@ -71,9 +71,8 @@ bool svg_renderer<OutputIterator>::process(rule::symbolizers const& syms,
|
|||
if (process_path)
|
||||
{
|
||||
// generate path output for each geometry of the current feature.
|
||||
for(std::size_t i=0; i<feature.num_geometries(); ++i)
|
||||
for (auto & geom : feature.paths())
|
||||
{
|
||||
geometry_type & geom = feature.get_geometry(i);
|
||||
if(geom.size() > 0)
|
||||
{
|
||||
path_type path(t_, geom, prj_trans);
|
||||
|
|
Loading…
Reference in a new issue