Update OsmAnd/src/net/osmand/plus/FavouritesDbHelper.java

This commit is contained in:
rogere66 2012-04-15 22:56:42 +03:00
parent cf20148fcf
commit 54c1dcfa6f

View file

@ -81,7 +81,10 @@ public class FavouritesDbHelper extends SQLiteOpenHelper {
WptPt pt = new WptPt(); WptPt pt = new WptPt();
pt.lat = p.getLatitude(); pt.lat = p.getLatitude();
pt.lon = p.getLongitude(); pt.lon = p.getLongitude();
if (p.getCategory().length() > 0)
pt.name = p.getName() + "_" + p.getCategory(); pt.name = p.getName() + "_" + p.getCategory();
else
pt.name = p.getName();
gpx.points.add(pt); gpx.points.add(pt);
} }
} }