follow up from be731f17ce
- fix read_polyline (-fsanitize=address)
This commit is contained in:
parent
8e1e5f19d1
commit
8fa314c418
1 changed files with 3 additions and 6 deletions
|
@ -109,12 +109,9 @@ mapnik::geometry::geometry<double> shape_io::read_polyline(shape_file::record_ty
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::vector<int> parts(num_parts);
|
std::vector<int> parts;
|
||||||
for (int i = 0; i < num_parts; ++i)
|
parts.resize(num_parts);
|
||||||
{
|
std::for_each(parts.begin(), parts.end(), [&](int & part) { part = record.read_ndr_integer();});
|
||||||
parts[i] = record.read_ndr_integer();
|
|
||||||
}
|
|
||||||
|
|
||||||
int start, end;
|
int start, end;
|
||||||
mapnik::geometry::multi_line_string<double> multi_line;
|
mapnik::geometry::multi_line_string<double> multi_line;
|
||||||
for (int k = 0; k < num_parts; ++k)
|
for (int k = 0; k < num_parts; ++k)
|
||||||
|
|
Loading…
Reference in a new issue