Correctly pass feature to display in PP when selecting search result (or any other container feature).

This commit is contained in:
Alex Zolotarev 2016-01-25 09:58:18 +03:00 committed by Sergey Yershov
parent c2c3c738bc
commit 70b62494d2

View file

@ -1880,7 +1880,13 @@ UserMark const * Framework::OnTapEventImpl(m2::PointD pxPoint, bool isLong, bool
});
if (mark != nullptr)
{
// TODO(AlexZ): Refactor out together with UserMarks.
const_cast<UserMark *>(mark)->SetFeature(fid.IsValid() ?
GetFeatureByID(fid) :
GetFeatureAtMercatorPoint(mark->GetPivot()));
return mark;
}
bool needMark = false;
m2::PointD mercatorPivot;