Changeset 8365 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2015-05-16T15:13:38+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/ImageOverlay.java
r8290 r8365 72 72 int height = -1; 73 73 if (offsetRight > 0 && offsetLeft > 0) { 74 width = new Double(w*(offsetRight-offsetLeft)).intValue();74 width = (int) (w*(offsetRight-offsetLeft)); 75 75 } 76 76 if (offsetTop > 0 && offsetBottom > 0) { 77 width = new Double(h*(offsetBottom-offsetTop)).intValue();77 width = (int) (h*(offsetBottom-offsetTop)); 78 78 } 79 79 ImageIcon overlay; -
trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java
r8291 r8365 187 187 final Matcher m = Pattern.compile("(\\d+)x(\\d+)(([+-])(\\d+)([+-])(\\d+))?").matcher(arg); 188 188 if (m.matches()) { 189 int w = Integer. valueOf(m.group(1));190 int h = Integer. valueOf(m.group(2));189 int w = Integer.parseInt(m.group(1)); 190 int h = Integer.parseInt(m.group(2)); 191 191 int x = screenDimension.x, y = screenDimension.y; 192 192 if (m.group(3) != null) { 193 x = Integer. valueOf(m.group(5));194 y = Integer. valueOf(m.group(7));193 x = Integer.parseInt(m.group(5)); 194 y = Integer.parseInt(m.group(7)); 195 195 if ("-".equals(m.group(4))) { 196 196 x = screenDimension.x + screenDimension.width - x - w;
Note:
See TracChangeset
for help on using the changeset viewer.