Changeset 12672 in josm for trunk/src/org/openstreetmap/josm/gui/layer
- Timestamp:
- 2017-08-27T17:07:54+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r12671 r12672 351 351 352 352 /** 353 * the collection of conflicts detected in this layer354 */355 private final ConflictCollection conflicts;356 357 /**358 353 * a texture for non-downloaded area 359 354 */ … … 407 402 this.data = data; 408 403 this.setAssociatedFile(associatedFile); 409 conflicts = new ConflictCollection();410 404 data.addDataSetListener(new DataSetListenerAdapter(this)); 411 405 data.addDataSetListener(MultipolygonCache.getInstance()); … … 567 561 int numNewConflicts = 0; 568 562 for (Conflict<?> c : visitor.getConflicts()) { 569 if (! conflicts.hasConflict(c)) {563 if (!data.getConflicts().hasConflict(c)) { 570 564 numNewConflicts++; 571 conflicts.add(c);565 data.getConflicts().add(c); 572 566 } 573 567 } … … 924 918 */ 925 919 public ConflictCollection getConflicts() { 926 return conflicts;920 return data.getConflicts(); 927 921 } 928 922
Note:
See TracChangeset
for help on using the changeset viewer.