Add TODO and put editor:: to MigrateFeatureIndex

This commit is contained in:
Sergey Magidovich 2016-02-16 14:01:01 +03:00 committed by Sergey Yershov
parent 2510d87a99
commit b556f22b98

View file

@ -335,10 +335,14 @@ void Editor::LoadMapEdits()
try
{
XMLFeature const xml(nodeOrWay.node());
auto const fid = needMigrateEdits
? MigrateFeatureIndex(m_forEachFeatureAtPointFn, xml)
: FeatureID(mwmId, xml.GetMWMFeatureIndex());
// TODO(mgsergio):
// if (needMigrateEdits && TimestampOf(mwm) >= UploadTimestamp(xml))
// remove that fature from edits.xml.
auto const fid = needMigrateEdits
? editor::MigrateFeatureIndex(m_forEachFeatureAtPointFn, xml)
: FeatureID(mwmId, xml.GetMWMFeatureIndex());
FeatureTypeInfo & fti = m_features[fid.m_mwmId][fid.m_index];
if (section.first == FeatureStatus::Created)