Changeset 18612 in josm for trunk/src/org


Ignore:
Timestamp:
2022-12-08T17:09:09+01:00 (17 months ago)
Author:
taylor.smock
Message:

Fix #13097: Angle snapping impossible with WGS84 projection

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/actions/mapmode/DrawSnapHelper.java

    r18494 r18612  
    2525import org.openstreetmap.josm.data.osm.Way;
    2626import org.openstreetmap.josm.data.osm.WaySegment;
     27import org.openstreetmap.josm.data.projection.ProjectionRegistry;
    2728import org.openstreetmap.josm.gui.MainApplication;
    2829import org.openstreetmap.josm.gui.MapView;
     
    440441        double dn = p.north()-n0;
    441442        double l = de*pe+dn*pn;
    442         double delta = MainApplication.getMap().mapView.getDist100Pixel()/20;
     443        double delta = MainApplication.getMap().mapView.getDist100Pixel() / (20 * ProjectionRegistry.getProjection().getMetersPerUnit());
    443444        if (!absoluteFix && l < delta) {
    444445            active = false;
Note: See TracChangeset for help on using the changeset viewer.