From 2ac6c5aa6afaa03d72405f9dbd42f0d278000f83 Mon Sep 17 00:00:00 2001 From: Chumva Date: Thu, 1 Mar 2018 16:21:36 +0200 Subject: [PATCH] added location of map if we don`t have lastLocation --- .../osmand/plus/views/mapwidgets/MapMarkersWidgetsFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapMarkersWidgetsFactory.java b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapMarkersWidgetsFactory.java index 84cbb1e316..f19434c14c 100644 --- a/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapMarkersWidgetsFactory.java +++ b/OsmAnd/src/net/osmand/plus/views/mapwidgets/MapMarkersWidgetsFactory.java @@ -196,7 +196,7 @@ public class MapMarkersWidgetsFactory { if (l != null) { loc = new LatLon(l.getLatitude(), l.getLongitude()); } else { - loc = null; + loc = map.getMapLocation(); } }