[map] check for point styles for polygons

This commit is contained in:
Darafei Praliaskouski 2013-05-11 19:41:21 +03:00 committed by Alex Zolotarev
parent befbad70ef
commit 370e81d73e
2 changed files with 7 additions and 0 deletions

View file

@ -65,6 +65,7 @@ namespace di
return;
m_hasLineStyles = false;
m_hasPointStyles = false;
m_geometryType = type.first;
m_isCoastline = type.second;
@ -142,6 +143,11 @@ namespace di
if (keys[i].m_type == drule::symbol)
hasIcon = true;
if ((keys[i].m_type == drule::caption && !m_primaryText.empty())
|| (keys[i].m_type == drule::symbol)
|| (keys[i].m_type == drule::circle))
m_hasPointStyles = true;
if ((keys[i].m_type == drule::caption)
|| (keys[i].m_type == drule::symbol)
|| (keys[i].m_type == drule::circle)

View file

@ -50,6 +50,7 @@ namespace di
bool m_isCoastline;
bool m_hasLineStyles;
bool m_hasPointStyles;
bool m_hasPathText;
int m_geometryType;