Changeset 3965 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2011-03-09T00:03:07+01:00 (14 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/DataSetMerger.java
r3719 r3965 309 309 // take. We take target. 310 310 // 311 } else if (target.isVisible() != source.isVisible() && target.getVersion() == source.getVersion()) 312 // Same version, but different "visible" attribute. It indicates a serious problem in datasets. 311 } else if (!target.isModified() && !source.isModified() && target.isVisible() != source.isVisible() && target.getVersion() == source.getVersion()) 312 // Same version, but different "visible" attribute and neither of them are modified. 313 // It indicates a serious problem in datasets. 313 314 // For example, datasets can be fetched from different OSM servers or badly hand-modified. 314 315 // We shouldn't merge that datasets. -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r3801 r3965 47 47 import org.openstreetmap.josm.data.gpx.ImmutableGpxTrack; 48 48 import org.openstreetmap.josm.data.gpx.WayPoint; 49 import org.openstreetmap.josm.data.osm.DataIntegrityProblemException; 49 50 import org.openstreetmap.josm.data.osm.DataSet; 50 51 import org.openstreetmap.josm.data.osm.DataSetMerger; … … 65 66 import org.openstreetmap.josm.data.validation.TestError; 66 67 import org.openstreetmap.josm.gui.HelpAwareOptionPane; 68 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec; 67 69 import org.openstreetmap.josm.gui.MapView; 68 import org.openstreetmap.josm.gui.HelpAwareOptionPane.ButtonSpec;69 70 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 70 71 import org.openstreetmap.josm.gui.dialogs.LayerListPopup; … … 299 300 public void mergeFrom(final DataSet from) { 300 301 final DataSetMerger visitor = new DataSetMerger(data,from); 301 visitor.merge(); 302 try { 303 visitor.merge(); 304 } catch (DataIntegrityProblemException e) { 305 JOptionPane.showMessageDialog( 306 Main.parent, 307 e.getMessage(), 308 tr("Error"), 309 JOptionPane.ERROR_MESSAGE 310 ); 311 return; 312 313 } 302 314 303 315 Area a = data.getDataSourceArea();
Note:
See TracChangeset
for help on using the changeset viewer.