Some minor comments.

This commit is contained in:
vng 2012-10-09 19:47:23 +03:00 committed by Alex Zolotarev
parent 433e3b0bd1
commit 446c095a02
2 changed files with 7 additions and 0 deletions

View file

@ -384,6 +384,9 @@ namespace
if (info.m_name.empty())
{
/// @todo Make logic better.
/// Now we skip linear objects to get only POI's here (don't mix with streets or roads).
/// But there are linear types that may be interesting for POI (rivers).
if (m_cont[i].m_types.GetGeoType() != feature::GEOM_LINE)
{
info.m_name = m_cont[i].m_name;

View file

@ -186,6 +186,10 @@ namespace yg
m2::PointD const OverlayElement::point(EPosition pos) const
{
/// @todo It's better to call roughBoundRect(), or place ASSERT(!m_isDirtyRoughRect, ()) here.
/// In general there is no need to store m_roughBoundRect at all.
/// It's calculating time is fast, because elements already cache vector<m2::AnyRectD>.
m2::PointD res = m_roughBoundRect.Center();
if (pos & EPosLeft)