Changeset 7472 in josm


Ignore:
Timestamp:
2014-08-30T20:21:05+02:00 (10 years ago)
Author:
bastiK
Message:

typo

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/StyledMapRenderer.java

    r7471 r7472  
    10621062        // find half segments that are long enough to draw text on
    10631063        // (don't draw text over the cross hair in the center of each segment)
    1064         List<Double> longHalfSegmentSart = new ArrayList<>(); // start point of half segment (as length along the way)
     1064        List<Double> longHalfSegmentStart = new ArrayList<>(); // start point of half segment (as length along the way)
    10651065        List<Double> longHalfSegmentEnd = new ArrayList<>(); // end point of half segment (as length along the way)
    10661066        List<Double> longHalfsegmentQuality = new ArrayList<>(); // quality factor (off screen / partly on screen / fully on screen)
     
    10851085                        }
    10861086                    }
    1087                     longHalfSegmentSart.add(pathLength);
     1087                    longHalfSegmentStart.add(pathLength);
    10881088                    longHalfSegmentEnd.add(pathLength + segmentLength / 2);
    10891089                    longHalfsegmentQuality.add(q);
     
    10971097                        }
    10981098                    }
    1099                     longHalfSegmentSart.add(pathLength + segmentLength / 2);
     1099                    longHalfSegmentStart.add(pathLength + segmentLength / 2);
    11001100                    longHalfSegmentEnd.add(pathLength + segmentLength);
    11011101                    longHalfsegmentQuality.add(q);
     
    11111111        double t1, t2;
    11121112       
    1113         if (!longHalfSegmentSart.isEmpty()) {
     1113        if (!longHalfSegmentStart.isEmpty()) {
    11141114            if (way.getNodesCount() == 2) {
    11151115                // For 2 node ways, the two half segments are exactly
     
    11251125            double bestDistanceToCenter = Double.MAX_VALUE;
    11261126            double bestQuality = -1;
    1127             for (int i=0; i<longHalfSegmentSart.size(); i++) {
    1128                 double start = longHalfSegmentSart.get(i);
     1127            for (int i=0; i<longHalfSegmentStart.size(); i++) {
     1128                double start = longHalfSegmentStart.get(i);
    11291129                double end = longHalfSegmentEnd.get(i);
    11301130                double dist = Math.abs(0.5 * (end + start) - 0.5 * pathLength);
Note: See TracChangeset for help on using the changeset viewer.