Priority of user marks selection fixed.

This commit is contained in:
Daria Volvenkova 2019-03-15 21:38:45 +03:00 committed by Roman Kuznetsov
parent 0866eb821d
commit 278683c002

View file

@ -1465,13 +1465,11 @@ public:
void operator()(kml::MarkGroupId groupId)
{
if (m_mark != nullptr)
return;
m2::AnyRectD const & rect = m_rectHolder(BookmarkManager::GetGroupType(groupId));
if (UserMark const * p = m_manager->FindMarkInRect(groupId, rect, m_d))
{
static double const kEps = 1e-5;
if (m_mark == nullptr || !p->GetPivot().EqualDxDy(m_mark->GetPivot(), kEps))
m_mark = p;
}
m_mark = p;
}
UserMark const * GetFoundMark() const { return m_mark; }