Changeset 2426 in josm for trunk/src/org


Ignore:
Timestamp:
2009-11-10T08:08:47+01:00 (14 years ago)
Author:
jttt
Message:

Fixed #3883 [PATCH] small correction to snap distance

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java

    r2422 r2426  
    299299
    300300    private BBox getSnapDistanceBBox(Point p) {
    301         return new BBox(getLatLon(p.x - snapDistance / 2, p.y - snapDistance / 2),
    302                 getLatLon(p.x + snapDistance / 2, p.y + snapDistance / 2));
     301        return new BBox(getLatLon(p.x - snapDistance, p.y - snapDistance),
     302                getLatLon(p.x + snapDistance, p.y + snapDistance));
    303303    }
    304304
Note: See TracChangeset for help on using the changeset viewer.