From cce02cc6c188c4097bfc9e86469dcce1ae7517b6 Mon Sep 17 00:00:00 2001 From: Alexey Kulish Date: Wed, 26 Apr 2017 10:46:50 +0300 Subject: [PATCH] Fix #3671 --- OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java b/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java index 7600ea5b58..296a8de611 100644 --- a/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java +++ b/OsmAnd/src/net/osmand/plus/views/MapMarkersLayer.java @@ -524,7 +524,10 @@ public class MapMarkersLayer extends OsmandMapLayer implements IContextMenuProvi MapMarkersHelper markersHelper = map.getMyApplication().getMapMarkersHelper(); MapMarker marker = (MapMarker) o; - marker.getOriginalPointDescription().setName(PointDescription.getSearchAddressStr(map)); + PointDescription originalDescription = marker.getOriginalPointDescription(); + if (originalDescription.isLocation()) { + originalDescription.setName(PointDescription.getSearchAddressStr(map)); + } markersHelper.moveMapMarker(marker, position); int index = markersHelper.getMapMarkers().indexOf(marker); if (index != -1) {