From 91ba38df56fb4f4fa138137abf08235b435d7f06 Mon Sep 17 00:00:00 2001 From: map-per Date: Sat, 8 Nov 2025 18:01:38 +0100 Subject: [PATCH] [editor] Improve place does not exist note text Signed-off-by: map-per --- libs/editor/osm_editor.cpp | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/libs/editor/osm_editor.cpp b/libs/editor/osm_editor.cpp index e28295c69..6ddcaca72 100644 --- a/libs/editor/osm_editor.cpp +++ b/libs/editor/osm_editor.cpp @@ -1107,16 +1107,17 @@ void Editor::CreateNote(ms::LatLon const & latLon, FeatureID const & fid, featur std::ostringstream sstr; auto canCreate = true; - if (!note.empty()) - sstr << '"' << note << "\"\n"; - switch (type) { case NoteProblemType::PlaceDoesNotExist: { - sstr << "The place has gone or never existed. A CoMaps user reported " - "that the POI was visible on the map (see snapshot date below), but was not found " - "on the ground.\n"; + sstr << "This place does not exist:\n"; + + if (!note.empty()) + sstr << '"' << note << "\"\n"; + + sstr << "A CoMaps user reported that the POI was visible on the map (see snapshot date below), " + "but was not found on the ground.\n"; auto const features = m_features.Get(); auto const isCreated = GetFeatureStatusImpl(*features, fid.m_mwmId, fid.m_index) == FeatureStatus::Created; auto const createdAndUploaded = (isCreated && IsFeatureUploadedImpl(*features, fid.m_mwmId, fid.m_index)); @@ -1129,7 +1130,12 @@ void Editor::CreateNote(ms::LatLon const & latLon, FeatureID const & fid, featur break; } - case NoteProblemType::General: break; + case NoteProblemType::General: + { + if (!note.empty()) + sstr << '"' << note << "\"\n"; + break; + } } if (!canCreate)