Changeset 11316 in josm
- Timestamp:
- 2016-11-26T12:47:04+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r11314 r11316 451 451 addToBBox(box, new HashSet<PrimitiveId>()); 452 452 if (getDataSet() != null) 453 bbox = box; // set cache453 setBBox(box); // set cache 454 454 return new BBox(box); 455 } 456 457 private void setBBox(BBox bbox) { 458 this.bbox = bbox; 455 459 } 456 460 … … 465 469 @Override 466 470 public void updatePosition() { 467 bbox = getBBox(); 471 setBBox(null); // make sure that it is recalculated 472 setBBox(getBBox()); 468 473 } 469 474 … … 472 477 super.setDataset(dataSet); 473 478 checkMembers(); 474 bbox = null; // bbox might have changed if relation was in ds, was removed, modified, added back to dataset479 setBBox(null); // bbox might have changed if relation was in ds, was removed, modified, added back to dataset 475 480 } 476 481
Note:
See TracChangeset
for help on using the changeset viewer.