forked from organicmaps/organicmaps
Fixed memory corruption in line shape
This commit is contained in:
parent
9ade0efe69
commit
331a9f631f
1 changed files with 3 additions and 0 deletions
|
@ -423,6 +423,9 @@ void LineShape::Construct(TBuilder & builder) const
|
|||
segments.reserve(path.size() - 1);
|
||||
ConstructLineSegments(path, segments);
|
||||
|
||||
if (segments.empty())
|
||||
return;
|
||||
|
||||
// build geometry
|
||||
for (size_t i = 0; i < segments.size(); i++)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue