forked from organicmaps/organicmaps
fixed crash on TilingRenderPolicy when drawing CircleInfo from additionalSkinPage.
This commit is contained in:
parent
f53b130816
commit
d0564b5b3a
2 changed files with 8 additions and 2 deletions
|
@ -17,7 +17,13 @@ namespace yg
|
|||
m_isOutlined(isOutlined),
|
||||
m_outlineWidth(my::rounds(outlineWidth)),
|
||||
m_outlineColor(outlineColor)
|
||||
{}
|
||||
{
|
||||
if (!m_isOutlined)
|
||||
{
|
||||
m_outlineWidth = 0;
|
||||
m_outlineColor = yg::Color(0, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
|
||||
CircleInfo::CircleInfo()
|
||||
{}
|
||||
|
|
|
@ -172,7 +172,7 @@ namespace yg
|
|||
{
|
||||
res = m_additionalPages[i]->findCircleInfo(circleInfo);
|
||||
if (res != invalidPageHandle())
|
||||
return packID(i, res);
|
||||
return packID(i + m_pages.size(), res);
|
||||
}
|
||||
|
||||
if (!m_pages[m_currentDynamicPage]->hasRoom(circleInfo))
|
||||
|
|
Loading…
Add table
Reference in a new issue