Ignore:
Timestamp:
2009-09-26T09:43:40+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3570: uploated deletions create conflicts at next upload

File:
1 edited

Legend:

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

    r2168 r2188  
    2828 * The collection is derived from the modified primitives of an {@see DataSet}.
    2929 *
    30  *
    3130 */
    3231public class APIDataSet {
     
    4544
    4645    /**
    47      * initializes the API data set with the modified primitives in <code>ds</ds>
    48      *
    49      * @param ds the data set. Ignore, if null.
     46     * initializes the API data set with the modified primitives in <code>ds</code>
     47     *
     48     * @param ds the data set. Ignored, if null.
    5049     */
    5150    public void init(DataSet ds) {
     
    6362            } else if (osm.isModified() && !osm.isDeleted()) {
    6463                toUpdate.addLast(osm);
    65             } else if (osm.isDeleted() && osm.getId() != 0) {
     64            } else if (osm.isDeleted() && osm.getId() != 0 && osm.isModified()) {
    6665                toDelete.addFirst(osm);
    6766            }
     
    7069
    7170    /**
    72      * initializes the API data set with the modified primitives in <code>ds</ds>
    73      *
    74      * @param ds the data set. Ignore, if null.
     71     * initializes the API data set with the modified primitives in <code>ds</code>
     72     *
     73     * @param ds the data set. Ignored, if null.
    7574     */
    7675    public APIDataSet(DataSet ds) {
Note: See TracChangeset for help on using the changeset viewer.