-The source code of GpsPrune is copyright 2006-2020 activityworkshop.net
+The source code of GpsPrune is copyright 2006-2021 activityworkshop.net
and is distributed under the terms of the Gnu GPL version 2.
Portions of the package jpeg.drew were taken
final double projectRads = Distance.convertDistanceToRadians(_distanceField.getValue(), distUnit);
final double origLatRads = Math.toRadians(currPoint.getLatitude().getDouble());
final double origLonRads = Math.toRadians(currPoint.getLongitude().getDouble());
- System.out.println("Project from: " + origLatRads + ", " + origLonRads);
final double bearingRads = Math.toRadians(_bearingField.getValue());
double lat2 = Math.asin(Math.sin(origLatRads) * Math.cos(projectRads)
double finalLatDeg = Math.toDegrees(lat2);
double finalLonDeg = Math.toDegrees(lon2);
- System.out.println("Result is: lat=" + finalLatDeg + ", lon=" + finalLonDeg);
// Create point and append to track
DataPoint point = new DataPoint(new Latitude(finalLatDeg, Coordinate.FORMAT_DEG),
*/
private synchronized void makePopup()
{
+ if (_track.getNumPoints() < 1)
+ {
+ _popup = null;
+ return;
+ }
_popup = new JPopupMenu();
JMenuItem altItem = new JMenuItem(I18nManager.getText("fieldname.altitude"));
altItem.addActionListener(new ActionListener() {
}
}
}
- else
+ else if (_popup != null)
{
// right clicks
_popup.show(this, e.getX(), e.getY());