forked from organicmaps/organicmaps-tmp
Fix bug in feature -> country polygonizer processing.
This commit is contained in:
parent
64f0f25cc8
commit
8751a518aa
1 changed files with 3 additions and 2 deletions
|
@ -59,12 +59,13 @@ namespace feature
|
|||
|
||||
m_regions.ForEachInRect(m2::RectD(point, point), bind<void>(ref(*this), _1, cref(point)));
|
||||
|
||||
return m_belongs;
|
||||
return !m_belongs;
|
||||
}
|
||||
|
||||
void operator() (kml::Region const & rgn, kml::Region::value_type const & point)
|
||||
{
|
||||
m_belongs = rgn.Contains(point);
|
||||
if (!m_belongs)
|
||||
m_belongs = rgn.Contains(point);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue