[drape] Fixed updating of a track selection shape.

This commit is contained in:
Daria Volvenkova 2020-04-06 20:04:35 +03:00 committed by Vladimir Byko-Ianko
parent fb65cf4f87
commit e977aab051

View file

@ -2526,7 +2526,15 @@ void Framework::OnTapEvent(place_page::BuildInfo const & buildInfo)
if (m_currentPlacePageInfo->GetTrackId() != kml::kInvalidTrackId)
{
if (m_currentPlacePageInfo->GetTrackId() == prevTrackId)
{
if (m_drapeEngine)
{
m_drapeEngine->SelectObject(df::SelectionShape::ESelectedObject::OBJECT_TRACK,
m_currentPlacePageInfo->GetMercator(), FeatureID(),
false /* isAnim */, false /* isGeometrySelectionAllowed */);
}
return;
}
GetBookmarkManager().UpdateElevationMyPosition(m_currentPlacePageInfo->GetTrackId());
}