Ticket #3883: snapdistance.patch

File snapdistance.patch, 687 bytes (added by Daeron, 13 years ago)
  • src/org/openstreetmap/josm/gui/NavigatableComponent.java

     
    298298    }
    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
    305305    /**