From 53eb9f81236852b9e270b9ce73390e2fa1abcf27 Mon Sep 17 00:00:00 2001 From: Nazar-Kutz Date: Mon, 20 Jul 2020 19:13:41 +0300 Subject: [PATCH] Fix #9340 --- OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java b/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java index d865a4a04b..5f206edabb 100644 --- a/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java +++ b/OsmAnd/src/net/osmand/plus/myplaces/TrackPointFragment.java @@ -622,7 +622,7 @@ public class TrackPointFragment extends OsmandExpandableListFragment implements FavouritesDbHelper fdb = app.getFavorites(); for (GpxDisplayItem i : getSelectedItems()) { if (i.locationStart != null) { - FavouritePoint fp = new FavouritePoint(i.locationStart.lat, i.locationStart.lon, i.name, editText.getText().toString()); + FavouritePoint fp = FavouritePoint.fromWpt(i.locationStart, app); if (!Algorithms.isEmpty(i.description)) { fp.setDescription(i.description); }