Changeset 3155 in josm for trunk


Ignore:
Timestamp:
2010-03-23T21:17:09+01:00 (14 years ago)
Author:
jttt
Message:

Check for relations without physical members in Relation.getBBox()

File:
1 edited

Legend:

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

    r3153 r3155  
    342342                bbox = calculateBBox(new HashSet<PrimitiveId>());
    343343            }
    344             return new BBox(bbox);
     344            if (bbox == null)
     345                return new BBox(0, 0, 0, 0); // No real members
     346            else
     347                return new BBox(bbox);
    345348        }
    346349    }
Note: See TracChangeset for help on using the changeset viewer.