Ticket #24982: 24982.patch

File 24982.patch, 641 bytes (added by GerdP, 5 hours ago)

Make sure that the calculated enlargement is not negative

  • src/org/openstreetmap/josm/data/osm/visitor/BoundingXYVisitor.java

     
    198198                // delta is very small, use configured minimum value
    199199                return enlarge;
    200200            }
    201             if (deltaDegress < 0.1) {
     201            if (enlarge > deltaDegress / 100) {
    202202                return enlarge - deltaDegress / 100;
    203203            }
    204204            return 0.0;