forked from organicmaps/organicmaps
Avoid copy-paste.
This commit is contained in:
parent
50cc83aefc
commit
65fb912326
1 changed files with 2 additions and 6 deletions
|
@ -123,15 +123,11 @@ void Index::FeaturesLoaderGuard::GetFeatureByIndex(uint32_t index, FeatureType &
|
|||
ASSERT_NOT_EQUAL(osm::Editor::FeatureStatus::Deleted, m_editor.GetFeatureStatus(id, index),
|
||||
("Deleted feature was cached. Please review your code."));
|
||||
if (!m_editor.Instance().GetEditedFeature(id, index, ft))
|
||||
{
|
||||
m_vector.GetByIndex(index, ft);
|
||||
ft.SetID(FeatureID(id, index));
|
||||
}
|
||||
GetOriginalFeatureByIndex(index, ft);
|
||||
}
|
||||
|
||||
void Index::FeaturesLoaderGuard::GetOriginalFeatureByIndex(uint32_t index, FeatureType & ft) const
|
||||
{
|
||||
MwmId const & id = m_handle.GetId();
|
||||
m_vector.GetByIndex(index, ft);
|
||||
ft.SetID(FeatureID(id, index));
|
||||
ft.SetID(FeatureID(m_handle.GetId(), index));
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue