Changeset 23489 in osm for applications/editors


Ignore:
Timestamp:
2010-10-06T23:58:30+02:00 (14 years ago)
Author:
bastik
Message:

fix: distance can be negative

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/simplifyarea/src/sk/zdila/josm/plugin/simplify/SimplifyAreaAction.java

    r23485 r23489  
    235235                                computeConvectAngle(coord1, coord2, coord3) > angleThreshold ||
    236236                        computeArea(coord1, coord2, coord3) > areaThreshold ||
    237                         crossTrackError(coord1, coord2, coord3) > distanceThreshold) {
     237                        Math.abs(crossTrackError(coord1, coord2, coord3)) > distanceThreshold) {
    238238                    newNodes2.add(prevNode);
    239239                        System.out.println(" ... KEEP");
Note: See TracChangeset for help on using the changeset viewer.