Ignore:
Timestamp:
2010-03-29T21:34:13+02:00 (14 years ago)
Author:
bastiK
Message:

fixed #4815 (after [3154] you cannot remove a node from quadbuckets if the coordinates have changed -> first remove the node from quadbuckets then change the coordinates then add it back)

File:
1 edited

Legend:

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

    r3153 r3163  
    4646            }
    4747            add(coor);
     48        }
     49    }
     50
     51    public BBox(Node n) {
     52        LatLon coor = n.getCoor();
     53        if (coor == null) {
     54            xmin = xmax = ymin = ymax = 0;
     55        } else {
     56            xmin = xmax = coor.lon();
     57            ymin = ymax = coor.lat();
    4858        }
    4959    }
Note: See TracChangeset for help on using the changeset viewer.