Changeset 1263 in josm for trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
- Timestamp:
- 14.01.2009 23:46:14 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r1169 r1263 67 67 return zoom; 68 68 return 32; 69 } 70 71 /** 72 * Return a ID which is unique as long as viewport dimensions are the same 73 */ 74 public Integer getViewID() 75 { 76 String x = center.east() + "_" + center.north() + "_" + scale + "_" + 77 getWidth() + "_" + getHeight(); 78 java.util.zip.CRC32 id = new java.util.zip.CRC32(); 79 id.update(x.getBytes()); 80 return new Long(id.getValue()).intValue(); 69 81 } 70 82
Note: See TracChangeset
for help on using the changeset viewer.
