Ignore:
Timestamp:
2007-02-17T17:09:49+01:00 (19 years ago)
Author:
imi
Message:
  • Fixed a bug in the Merger/Conflict to auto-resolve marked changes without real changes
  • Fixed bug in split way, that reversed the order of segments in one way.
  • Fixed bug where dialogs did not update anymore after loading a dataset twice
File:
1 edited

Legend:

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

    r194 r203  
    166166        /**
    167167         * Perform an equality compare for all non-volatile fields not only for the id
    168          * but for the whole object (for conflict resolving etc)
     168         * but for the whole object (for conflict resolving)
     169         * @param semanticOnly if <code>true</code>, modified flag and timestamp are not compared
    169170         */
    170         public boolean realEqual(OsmPrimitive osm) {
     171        public boolean realEqual(OsmPrimitive osm, boolean semanticOnly) {
    171172                return
    172                 id == osm.id &&
    173                 modified == osm.modified &&
    174                 deleted == osm.deleted &&
    175                 (timestamp == null ? osm.timestamp==null : timestamp.equals(osm.timestamp)) &&
    176                 (keys == null ? osm.keys==null : keys.equals(osm.keys));
     173                        id == osm.id &&
     174                        (semanticOnly || (modified == osm.modified)) &&
     175                        deleted == osm.deleted &&
     176                        (semanticOnly || (timestamp == null ? osm.timestamp==null : timestamp.equals(osm.timestamp))) &&
     177                        (keys == null ? osm.keys==null : keys.equals(osm.keys));
    177178        }
    178179       
Note: See TracChangeset for help on using the changeset viewer.