- Timestamp:
- 2022-12-08T17:09:09+01:00 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/mapmode/DrawSnapHelper.java
r18494 r18612 25 25 import org.openstreetmap.josm.data.osm.Way; 26 26 import org.openstreetmap.josm.data.osm.WaySegment; 27 import org.openstreetmap.josm.data.projection.ProjectionRegistry; 27 28 import org.openstreetmap.josm.gui.MainApplication; 28 29 import org.openstreetmap.josm.gui.MapView; … … 440 441 double dn = p.north()-n0; 441 442 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()); 443 444 if (!absoluteFix && l < delta) { 444 445 active = false;
Note:
See TracChangeset
for help on using the changeset viewer.