update place page after edit

Signed-off-by: map-per <map-per@gmx.de>
This commit is contained in:
map-per 2024-09-28 19:10:55 +02:00 committed by Viktor Havaka
parent a28349e8c2
commit 34cc018629

View file

@ -3070,15 +3070,15 @@ osm::Editor::SaveResult Framework::SaveEditedMapObject(osm::EditableMapObject em
auto const result = osm::Editor::Instance().SaveEditedFeature(emo);
// Automatically select newly created objects.
if (!m_currentPlacePageInfo)
{
place_page::BuildInfo info;
info.m_mercator = emo.GetMercator();
info.m_featureId = emo.GetID();
m_currentPlacePageInfo = BuildPlacePageInfo(info);
ActivateMapSelection();
}
// Automatically select newly created and edited objects.
if (m_currentPlacePageInfo)
DeactivateMapSelection();
place_page::BuildInfo info;
info.m_mercator = emo.GetMercator();
info.m_featureId = emo.GetID();
m_currentPlacePageInfo = BuildPlacePageInfo(info);
ActivateMapSelection();
return result;
}