Ignore:
Timestamp:
2013-08-11T21:09:08+02:00 (11 years ago)
Author:
Don-vip
Message:

fix #8951 - fix clearing of primitive metadata

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/Way.java

    r6105 r6140  
    232232     * Contructs a new {@code Way} from an existing {@code Way}.
    233233     * @param original The original {@code Way} to be identically cloned. Must not be null
    234      * @param clearId If true, clears the OSM id as defined by {@link #clearOsmId}. If false, does nothing
     234     * @param clearMetadata If {@code true}, clears the OSM id and other metadata as defined by {@link #clearOsmMetadata}. If {@code false}, does nothing
    235235     * @since 2410
    236236     */
    237     public Way(Way original, boolean clearId) {
     237    public Way(Way original, boolean clearMetadata) {
    238238        super(original.getUniqueId(), true);
    239239        cloneFrom(original);
    240         if (clearId) {
    241             clearOsmId();
     240        if (clearMetadata) {
     241            clearOsmMetadata();
    242242        }
    243243    }
Note: See TracChangeset for help on using the changeset viewer.