Ignore:
Timestamp:
2018-10-16T00:32:46+02:00 (8 years ago)
Author:
Don-vip
Message:

fix #16755 - Cut overlapping GPX layers when merging (patch by Bjoeni, modified)

Location:
trunk/src/org/openstreetmap/josm/gui
Files:
1 added
1 edited

Legend:

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

    r14134 r14338  
    307307        if (!(from instanceof GpxLayer))
    308308            throw new IllegalArgumentException("not a GpxLayer: " + from);
    309         data.mergeFrom(((GpxLayer) from).data);
     309        mergeFrom((GpxLayer) from, false, false);
     310    }
     311
     312    /**
     313     * Merges the given GpxLayer into this layer and can remove timewise overlapping parts of the given track
     314     * @param from The GpxLayer that gets merged into this one
     315     * @param cutOverlapping whether overlapping parts of the given track should be removed
     316     * @param connect whether the tracks should be connected on cuts
     317     * @since 14338
     318     */
     319    public void mergeFrom(GpxLayer from, boolean cutOverlapping, boolean connect) {
     320        data.mergeFrom(from.data, cutOverlapping, connect);
    310321        invalidate();
    311322    }
Note: See TracChangeset for help on using the changeset viewer.