Changeset 8365 in josm for trunk/src/org/openstreetmap/josm/tools/WindowGeometry.java
- Timestamp:
- 2015-05-16T15:13:38+02:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.
