Fix bug in feature -> country polygonizer processing.

This commit is contained in:
vng 2011-01-27 19:45:45 +02:00 committed by Alex Zolotarev
parent 64f0f25cc8
commit 8751a518aa

View file

@ -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);
}
};