forked from organicmaps/organicmaps-tmp
Correctly pass feature to display in PP when selecting search result (or any other container feature).
This commit is contained in:
parent
c2c3c738bc
commit
70b62494d2
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue