From a72f9c32cdda656d99e9e570f1fc03a1d2c27011 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Mon, 8 Jun 2015 00:20:56 +0200 Subject: [PATCH] Fix Wpt issue --- OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java index 929379e156..6a97df9d75 100644 --- a/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java +++ b/OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java @@ -481,9 +481,9 @@ public class FavouritesDbHelper { name = ""; } // old way to store the category, in name. - if ("".equals(categoryName.trim()) && (c = p.name.lastIndexOf('_')) != -1) { - categoryName = p.name.substring(c + 1); - name = p.name.substring(0, c); + if ("".equals(categoryName.trim()) && (c = name.lastIndexOf('_')) != -1) { + categoryName = name.substring(c + 1); + name = name.substring(0, c); } FavouritePoint fp = new FavouritePoint(p.lat, p.lon, name, categoryName); fp.setDescription(p.desc);