Changeset 2468 in josm
- Timestamp:
- 2009-11-17T17:33:31+01:00 (15 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/command/DeleteCommand.java
r2414 r2468 58 58 throw new IllegalArgumentException(tr("Parameter ''{0}'' must not be empty")); 59 59 if (data.isEmpty()) 60 throw new IllegalArgumentException(tr("At least one object to delete requir d, got empty collection"));60 throw new IllegalArgumentException(tr("At least one object to delete required, got empty collection")); 61 61 this.toDelete = data; 62 62 } -
trunk/src/org/openstreetmap/josm/data/osm/visitor/SimplePaintVisitor.java
r2466 r2468 132 132 public void visitAll(DataSet data, boolean virtual, Bounds bounds) { 133 133 this.ds = data; 134 //boolean profiler = Main.pref.get boolean("simplepaint.profiler",false);134 //boolean profiler = Main.pref.getBoolean("simplepaint.profiler",false); 135 135 //long profilerStart = java.lang.System.currentTimeMillis(); 136 136 //long profilerLast = profilerStart; -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r2450 r2468 67 67 68 68 return Main.proj.latlon2eastNorth(new LatLon(lat, lon)); 69 }70 71 /**72 * Return a ID which is unique as long as viewport dimensions are the same73 */74 public Integer getViewID()75 {76 String x = center.east() + "_" + center.north() + "_" + scale + "_" +77 getWidth() + "_" + getHeight() + "_" + getProjection().toString();78 java.util.zip.CRC32 id = new java.util.zip.CRC32();79 id.update(x.getBytes());80 return new Long(id.getValue()).intValue();81 69 } 82 70
Note:
See TracChangeset
for help on using the changeset viewer.