forked from organicmaps/organicmaps
fixed empty vector dereference.
This commit is contained in:
parent
7819492f9a
commit
c894f0168d
1 changed files with 3 additions and 0 deletions
|
@ -225,6 +225,9 @@ namespace yg
|
|||
for (unsigned i = 0; i < v.size(); ++i)
|
||||
v[i]->getNonPackedRects(stylesCache, sizes);
|
||||
|
||||
if (sizes.empty())
|
||||
return;
|
||||
|
||||
if (stylesCache->hasRoom(&sizes[0], sizes.size()))
|
||||
{
|
||||
for (unsigned i = 0; i < v.size(); ++i)
|
||||
|
|
Loading…
Add table
Reference in a new issue