Fix crash

This commit is contained in:
Alexey Kulish 2016-11-19 17:31:57 +03:00
parent 67c941eb43
commit 9d5b24afbd

View file

@ -89,7 +89,7 @@ public class QuickSearchListItem {
PointDescription pd = historyEntry.getName();
return pd.getSimpleName(app, false);
case LOCATION:
LatLon latLon = (LatLon) searchResult.object;
LatLon latLon = searchResult.location;
return PointDescription.getLocationNamePlain(app, latLon.getLatitude(), latLon.getLongitude());
}
return searchResult.localeName;