Changeset 8387 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-05-17T17:21:01+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Geometry.java
r8384 r8387 631 631 for (Node n : way.getNodes()) { 632 632 if (lastN != null) { 633 n.getEastNorth().getX();634 635 633 area += (calcX(n) * calcY(lastN)) - (calcY(n) * calcX(lastN)); 636 634 } -
trunk/src/org/openstreetmap/josm/tools/ImageOverlay.java
r8365 r8387 84 84 int x, y; 85 85 if (width == -1 && offsetLeft < 0) { 86 x = new Double(w*offsetRight).intValue() - overlay.getIconWidth();86 x = (int)(w*offsetRight) - overlay.getIconWidth(); 87 87 } else { 88 x = new Double(w*offsetLeft).intValue();88 x = (int)(w*offsetLeft); 89 89 } 90 90 if (height == -1 && offsetTop < 0) { 91 y = new Double(h*offsetBottom).intValue() - overlay.getIconHeight();91 y = (int)(h*offsetBottom) - overlay.getIconHeight(); 92 92 } else { 93 y = new Double(h*offsetTop).intValue();93 y = (int)(h*offsetTop); 94 94 } 95 95 overlay.paintIcon(null, ground.getGraphics(), x, y);
Note:
See TracChangeset
for help on using the changeset viewer.