diff options
author | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-07-15 13:42:54 +0300 |
---|---|---|
committer | VladiMihaylenko <vxmihaylenko@gmail.com> | 2016-07-15 13:42:54 +0300 |
commit | d5c153d06566fcf91be6e89cb259a10ed6b281b2 (patch) | |
tree | 2eafab432f888cea3d3196dbd6ce3e2c3f917366 | |
parent | 33403157cb0055f1cf61802ee114c3550ef83d12 (diff) |
[editor] Fixed crash.
-rw-r--r-- | indexer/osm_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indexer/osm_editor.cpp b/indexer/osm_editor.cpp index ec78775ca8..b98f934c7c 100644 --- a/indexer/osm_editor.cpp +++ b/indexer/osm_editor.cpp @@ -631,7 +631,7 @@ EditableProperties Editor::GetEditableProperties(FeatureType const & feature) co if (GetFeatureStatus(feature.GetID()) != FeatureStatus::Created) { auto const originalFeaturePtr = m_getOriginalFeatureFn(feature.GetID()); - if (originalFeaturePtr) + if (!originalFeaturePtr) { LOG(LERROR, ("A feature with id", feature.GetID(), "cannot be loaded.")); alohalytics::LogEvent("Editor_MissingFeature_Error"); @@ -988,7 +988,7 @@ void Editor::MarkFeatureAsObsolete(FeatureID const & fid) // If a feature was modified we can drop all changes since it's now obsolete. auto const originalFeaturePtr = m_getOriginalFeatureFn(fid); - if (originalFeaturePtr) + if (!originalFeaturePtr) { LOG(LERROR, ("A feature with id", fid, "cannot be loaded.")); alohalytics::LogEvent("Editor_MissingFeature_Error"); |