Changeset 2635 in josm for trunk/src


Ignore:
Timestamp:
2009-12-14T16:12:58+01:00 (12 years ago)
Author:
bastiK
Message:

fixed gpx-rendering error: Tracksegments should not be connected by a line (unless explicitly demanded by the user)

File:
1 edited

Legend:

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

    r2626 r2635  
    535535         ********** STEP 2a - CHECK CACHE VALIDITY **********************
    536536         ****************************************************************/
    537         if (computeCacheInSync
    538                 && ((computeCacheMaxLineLengthUsed != maxLineLength) || (!neutralColor.equals(computeCacheColorUsed))
    539                         || (computeCacheColored != colored) || (computeCacheColorTracksTune != colorTracksTune))) {
     537        if ((computeCacheMaxLineLengthUsed != maxLineLength) || (!neutralColor.equals(computeCacheColorUsed))
     538                        || (computeCacheColored != colored) || (computeCacheColorTracksTune != colorTracksTune)) {
    540539            // System.out.println("(re-)computing gpx line styles, reason: CCIS=" +
    541540            // computeCacheInSync + " CCMLLU=" + (computeCacheMaxLineLengthUsed != maxLineLength) +
     
    555554            WayPoint oldWp = null;
    556555            for (GpxTrack trk : data.tracks) {
    557                 if (!forceLines) { // don't draw lines between segments, unless forced to
    558                     oldWp = null;
    559                 }
    560556                for (Collection<WayPoint> segment : trk.trackSegs) {
     557                    if (!forceLines) { // don't draw lines between segments, unless forced to
     558                        oldWp = null;
     559                    }
    561560                    for (WayPoint trkPnt : segment) {
    562561                        LatLon c = trkPnt.getCoor();
Note: See TracChangeset for help on using the changeset viewer.