forked from organicmaps/organicmaps
Changed the check order.
This commit is contained in:
parent
6ff5907aaf
commit
efa92fa4b7
1 changed files with 7 additions and 6 deletions
|
@ -110,6 +110,9 @@ private:
|
|||
index.ForEachInIntervalAndScale(
|
||||
[&](uint32_t index)
|
||||
{
|
||||
if (!checkUnique(index))
|
||||
return;
|
||||
|
||||
FeatureType feature;
|
||||
switch (m_editor.GetFeatureStatus(mwmID, index))
|
||||
{
|
||||
|
@ -122,12 +125,10 @@ private:
|
|||
CHECK(false, ("Created features index should be generated."));
|
||||
case osm::Editor::FeatureStatus::Untouched: break;
|
||||
}
|
||||
if (checkUnique(index))
|
||||
{
|
||||
fv.GetByIndex(index, feature);
|
||||
feature.SetID(FeatureID(mwmID, index));
|
||||
m_f(feature);
|
||||
}
|
||||
|
||||
fv.GetByIndex(index, feature);
|
||||
feature.SetID(FeatureID(mwmID, index));
|
||||
m_f(feature);
|
||||
},
|
||||
i.first, i.second, scale);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue