Ignore:
Timestamp:
2009-10-10T14:08:39+02:00 (10 years ago)
Author:
stoecker
Message:

applied #3671 - patch by Dave Hansen - performance fixes of data storage

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/coor/QuadTiling.java

    r2165 r2263  
    9898        return (int)(mask & (quad >> total_shift));
    9999    }
    100     static public int index(Node n, int level)
     100    static public int index(LatLon coor, int level)
    101101    {
    102         LatLon coor = n.getCoor();
    103102        // The nodes that don't return coordinates will all get
    104103        // stuck in a single tile.  Hopefully there are not too
     
    106105        if (coor == null)
    107106            return 0;
    108         long quad = coorToTile(n.getCoor());
     107        long quad = coorToTile(coor);
    109108        return index(level, quad);
    110109    }
Note: See TracChangeset for help on using the changeset viewer.