Update GPXLayer.java

This commit is contained in:
vshcherb 2020-06-16 12:06:16 +02:00 committed by GitHub
parent abb98a9406
commit d8fddfbac9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -586,7 +586,7 @@ public class GPXLayer extends OsmandMapLayer implements ContextMenuLayer.IContex
} }
public void getWptFromPoint(RotatedTileBox tb, PointF point, List<? super WptPt> res) { public void getWptFromPoint(RotatedTileBox tb, PointF point, List<? super WptPt> res) {
int r = (int) getScaledTouchRadius(view.getApplication(), getDefaultRadiusPoi(tb)) * TOUCH_RADIUS_MULTIPLIER; int r = (int) (getScaledTouchRadius(view.getApplication(), getDefaultRadiusPoi(tb)) * TOUCH_RADIUS_MULTIPLIER);
int ex = (int) point.x; int ex = (int) point.x;
int ey = (int) point.y; int ey = (int) point.y;
List<SelectedGpxFile> selectedGpxFiles = new ArrayList<>(selectedGpxHelper.getSelectedGPXFiles()); List<SelectedGpxFile> selectedGpxFiles = new ArrayList<>(selectedGpxHelper.getSelectedGPXFiles());