forked from organicmaps/organicmaps
[editor] Fixed crash.
This commit is contained in:
parent
33403157cb
commit
d5c153d065
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Reference in a new issue