Changeset 3107 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2010-03-10T19:11:58+01:00 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Relation.java
r3102 r3107 334 334 @Override 335 335 public BBox getBBox() { 336 if (bbox == null) { 337 calculateBBox(new HashSet<PrimitiveId>()); 336 if (getDataSet() == null) 337 return calculateBBox(new HashSet<PrimitiveId>()); 338 else { 338 339 if (bbox == null) { 339 bbox = new BBox(0, 0, 0, 0); // No members 340 } 341 } 342 return bbox; 340 bbox = calculateBBox(new HashSet<PrimitiveId>()); 341 if (bbox == null) { 342 bbox = new BBox(0, 0, 0, 0); // No members 343 } 344 } 345 return bbox; 346 } 343 347 } 344 348 … … 374 378 super.setDataset(dataSet); 375 379 checkMembers(); 380 bbox = null; // bbox might have changed if relation was in ds, was removed, modified, added back to dataset 376 381 } 377 382 … … 401 406 /** 402 407 * Replies true if at least one child primitive is incomplete 403 * 408 * 404 409 * @return true if at least one child primitive is incomplete 405 410 */ … … 414 419 * Replies a collection with the incomplete children this relation 415 420 * refers to 416 * 421 * 417 422 * @return the incomplete children. Empty collection if no children are incomplete. 418 423 */
Note:
See TracChangeset
for help on using the changeset viewer.